POSTIN
/bin/sh
# For dynamical link, shared librairy
/sbin/ldconfig
# Use this because a desktop entry has a 'MimeType key.
update-desktop-database &> /dev/null || :
# update-mime-database
update-mime-database /usr/share/mime &> /dev/null || :
# update icon themes
touch --no-create /usr/share/icons/hicolor &>/dev/null || :
POSTUN
/bin/sh
# For dynamical link, shared librairy
/sbin/ldconfig
# Use this because a desktop entry has a 'MimeType key.
update-desktop-database &> /dev/null || :
# update-mime-database
update-mime-database /usr/share/mime &> /dev/null || :
# update icon themes
if [ $1 -eq 0 ] ; then
touch --no-create /usr/share/icons/hicolor &>/dev/null
gtk-update-icon-cache /usr/share/icons/hicolor &>/dev/null || :
fi
POSTTRANS
/bin/sh
# update icon themes
gtk-update-icon-cache /usr/share/icons/hicolor &>/dev/null || :