diff options
-rw-r--r-- | sysui/desktop/debian/postrm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sysui/desktop/debian/postrm b/sysui/desktop/debian/postrm index 42aa7892873d..adb9cf448e95 100644 --- a/sysui/desktop/debian/postrm +++ b/sysui/desktop/debian/postrm @@ -11,5 +11,16 @@ if [ "$1" != "purge" ]; then if [ -x /usr/bin/update-menus ]; then update-menus fi + 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 fi exit 0 |