diff options
Diffstat (limited to 'sysui/desktop/debian/postinst')
-rwxr-xr-x | sysui/desktop/debian/postinst | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/sysui/desktop/debian/postinst b/sysui/desktop/debian/postinst index 604e67605297..dcb91680cb4e 100755 --- a/sysui/desktop/debian/postinst +++ b/sysui/desktop/debian/postinst @@ -31,17 +31,15 @@ if [ "$1" = "configure" ] ; then # first install update-menus fi # update icon-cache if already present - for theme in gnome hicolor; 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 + 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 - done + # ignore errors (e.g. when there is a cache, but no index.theme) + true + fi fi # update /etc/mime.types |