| 1 |
foser |
1.1 |
# Copyright 1999-2004 Gentoo Foundation |
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
foser |
1.5 |
# $Header: /var/cvsroot/gentoo-x86/eclass/fdo-mime.eclass,v 1.4 2005/07/06 20:23:20 agriffis Exp $ |
| 4 |
foser |
1.1 |
|
| 5 |
|
|
# Author: |
| 6 |
|
|
# foser <foser@gentoo.org> |
| 7 |
|
|
|
| 8 |
|
|
# utility eclass to update the desktop mime info as laid out in the freedesktop specs & implementations |
| 9 |
|
|
# <references here> |
| 10 |
|
|
|
| 11 |
|
|
|
| 12 |
|
|
# Updates the desktop database |
| 13 |
|
|
# Generates a list of mimetypes linked to applications that can handle them |
| 14 |
|
|
|
| 15 |
|
|
fdo-mime_desktop_database_update() { |
| 16 |
|
|
|
| 17 |
|
|
if [ -x ${ROOT}/usr/bin/update-desktop-database ] |
| 18 |
|
|
then |
| 19 |
vapier |
1.2 |
einfo "Updating desktop mime database ..." |
| 20 |
foser |
1.5 |
${ROOT}/usr/bin/update-desktop-database -q ${ROOT}/usr/share/applications |
| 21 |
foser |
1.1 |
fi |
| 22 |
|
|
|
| 23 |
|
|
} |
| 24 |
|
|
|
| 25 |
|
|
# Update the mime database |
| 26 |
|
|
# Creates a general list of mime types from several sources |
| 27 |
|
|
|
| 28 |
|
|
fdo-mime_mime_database_update() { |
| 29 |
|
|
|
| 30 |
|
|
if [ -x ${ROOT}/usr/bin/update-mime-database ] |
| 31 |
|
|
then |
| 32 |
vapier |
1.2 |
einfo "Updating shared mime info database ..." |
| 33 |
foser |
1.5 |
${ROOT}/usr/bin/update-mime-database ${ROOT}/usr/share/mime |
| 34 |
foser |
1.1 |
fi |
| 35 |
|
|
|
| 36 |
|
|
} |