summaryrefslogtreecommitdiffstats
path: root/sysui/desktop/debian/postrm
blob: 0e6099ea5b43a6b85e84e2d8f0fedc5f38bc89cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/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
    update-desktop-database -q /usr/share/applications
  fi
  if [ -x /usr/bin/update-menus ]; then
    update-menus
  fi
  if [ -e /usr/share/icons/hicolor/icon-theme.cache ] ; then
    # touch it, just in case we cannot find the binary...
    touch /usr/share/icons/hicolor
    if (which gtk-update-icon-cache); then
      gtk-update-icon-cache /usr/share/icons/hicolor
    fi
    # ignore errors (e.g. when there is a cache, but no index.theme)
    true
  fi
fi
exit 0