summaryrefslogtreecommitdiff
path: root/sysui/desktop/debian/postrm
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2006-02-06 15:39:31 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2006-02-06 15:39:31 +0000
commit1d85fe3cb9eb0ee734d817ef9ed7bc0911dcf248 (patch)
tree710a0d7ffbfdc5202dbfb068e7791460a5e0a379 /sysui/desktop/debian/postrm
parentec877fb88e1577d83e4eb94cf7db4fcf013e0303 (diff)
INTEGRATION: CWS cloph02 (1.3.46); FILE MERGED
2006/01/14 01:32:26 cloph 1.3.46.2: Issue number: #i57871# Submitted by: cloph Don't assume the script can find the binary to update the icon-cache.. Check for existence of the cache, then touch the theme-dir to invalidate the cache and then try to update the cache. 2005/12/12 19:27:07 cloph 1.3.46.1: Issue number: #i57871# Submitted by: cloph
Diffstat (limited to 'sysui/desktop/debian/postrm')
-rw-r--r--sysui/desktop/debian/postrm11
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