2005-06-21 09:03:33 -05:00
|
|
|
#!/bin/sh
|
|
|
|
# run always - both when upgrading as well as when erasing the package.
|
|
|
|
# Make sure this works when converted to .deb using alien.
|
|
|
|
if [ "$1" != "purge" ]; then
|
|
|
|
if [ -x /usr/bin/update-mime-database ]; then
|
|
|
|
update-mime-database /usr/share/mime
|
|
|
|
fi
|
|
|
|
if [ -x /usr/bin/update-desktop-database ]; then
|
2005-08-18 06:45:43 -05:00
|
|
|
update-desktop-database -q /usr/share/applications
|
2005-06-21 09:03:33 -05:00
|
|
|
fi
|
|
|
|
if [ -x /usr/bin/update-menus ]; then
|
|
|
|
update-menus
|
|
|
|
fi
|
2006-02-06 09:39:31 -06:00
|
|
|
for theme in gnome hicolor locolor; do
|
|
|
|
if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
|
|
|
|
# touch it, just in case we cannot find the binary...
|
|
|
|
touch /usr/share/icons/$theme
|
|
|
|
if (which gtk-update-icon-cache); then
|
|
|
|
gtk-update-icon-cache /usr/share/icons/$theme
|
|
|
|
fi
|
|
|
|
# ignore errors (e.g. when there is a cache, but no index.theme)
|
|
|
|
true
|
|
|
|
fi
|
|
|
|
done
|
2005-06-21 09:03:33 -05:00
|
|
|
fi
|
2005-08-18 06:45:43 -05:00
|
|
|
exit 0
|