diff options
Diffstat (limited to 'autoscripts/postrm-icons')
-rw-r--r-- | autoscripts/postrm-icons | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/autoscripts/postrm-icons b/autoscripts/postrm-icons index 87fd790b..9e00f039 100644 --- a/autoscripts/postrm-icons +++ b/autoscripts/postrm-icons @@ -1,15 +1,3 @@ -if [ "$1" = "remove" ]; then - for dir in #DIRLIST#; do - if [ -d "$dir" ]; then - if [ -f "$dir"/index.theme ] && \ - [ -f "$dir"/icon-theme.cache ] && \ - which gtk-update-icon-cache >/dev/null 2>&1 - then - gtk-update-icon-cache --force --quiet "$dir" - else - rm -f "$dir"/icon-theme.cache - rmdir -p --ignore-fail-on-non-empty "$dir" - fi - fi - done +if which update-icon-caches >/dev/null 2>&1 ; then + update-icon-caches #DIRLIST# fi |