diff options
author | Rüdiger Timm <rt@openoffice.org> | 2006-02-06 15:39:58 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2006-02-06 15:39:58 +0000 |
commit | 1af128cfb6f6097be0bf8fe50b7b50e1105b9df0 (patch) | |
tree | 1780564e050b8198b0859608ef876aa15f85fd34 /sysui/desktop/mandriva | |
parent | 84d2e75e4b3b46d8d320269b9d26b0b286768778 (diff) |
INTEGRATION: CWS cloph02 (1.11.22); FILE MERGED
2006/01/14 01:32:35 cloph 1.11.22.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/17 12:15:40 cloph 1.11.22.1: Issue number: #i57871#
Submitted by: cloph
Diffstat (limited to 'sysui/desktop/mandriva')
-rw-r--r-- | sysui/desktop/mandriva/mandriva-menus.spec | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/sysui/desktop/mandriva/mandriva-menus.spec b/sysui/desktop/mandriva/mandriva-menus.spec index d41405877d18..546935edc177 100644 --- a/sysui/desktop/mandriva/mandriva-menus.spec +++ b/sysui/desktop/mandriva/mandriva-menus.spec @@ -184,6 +184,17 @@ EOF chmod 0755 /usr/bin/%unixfilename fi 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 %{update_menus} @@ -289,7 +300,17 @@ fi %postun %{update_menus} - +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 %files %attr(0755,root,root) /usr/bin/soffice |