#! /bin/sh

case "$1" in
    remove)
        # Update MIME database only if it's older than the packages dir
        if test -x /usr/bin/update-mime-database -a \
           /usr/share/mime/mime.cache -ot /usr/share/mime/packages; then
            /usr/bin/update-mime-database /usr/share/mime
        fi
        if test -x /usr/bin/gtk-update-icon-cache; then
            /usr/bin/gtk-update-icon-cache -f -t /usr/share/icons/hicolor
        fi
        if test -x /usr/bin/update-desktop-database; then
            /usr/bin/update-desktop-database
        fi
        ;;
esac
dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteInfoprint string:"Uninstalling menu icon"

rm /usr/share/applications/hildon/xarchiver.desktop
rm /usr/share/dbus-1/services/xarchiver.service

#DEBHELPER#
