summaryrefslogtreecommitdiff
path: root/sysui/desktop
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2006-02-06 15:39:18 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2006-02-06 15:39:18 +0000
commitec877fb88e1577d83e4eb94cf7db4fcf013e0303 (patch)
treefb4afdf34897ae5869c81f271ef36c42894d2c8d /sysui/desktop
parent2648943ec6678f26c780a107a6c10f15c5adaf1b (diff)
INTEGRATION: CWS cloph02 (1.3.46); FILE MERGED
2006/01/14 01:31:53 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:06 cloph 1.3.46.1: Issue number: #i57871# Submitted by: cloph
Diffstat (limited to 'sysui/desktop')
-rw-r--r--sysui/desktop/debian/postinst12
1 files changed, 12 insertions, 0 deletions
diff --git a/sysui/desktop/debian/postinst b/sysui/desktop/debian/postinst
index 5557bbc7ee98..0bbf3ba5c98c 100644
--- a/sysui/desktop/debian/postinst
+++ b/sysui/desktop/debian/postinst
@@ -13,6 +13,18 @@ if [ "$1" = "configure" ] ; then # first install
if [ -x /usr/bin/update-menus ]; then
update-menus
fi
+ # update icon-cache if already present
+ 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
# update /etc/mime.types