diff options
-rw-r--r-- | meta/classes/gtk-icon-cache.bbclass | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta/classes/gtk-icon-cache.bbclass b/meta/classes/gtk-icon-cache.bbclass index 7c7dd788542..d5fdcd521d8 100644 --- a/meta/classes/gtk-icon-cache.bbclass +++ b/meta/classes/gtk-icon-cache.bbclass @@ -32,6 +32,24 @@ done } gtk_icon_cache_postrm() { +if [ "x$D" != "x" ]; then + if [ ! -f $INTERCEPT_DIR/update_icon_cache ]; then + cat << "EOF" > $INTERCEPT_DIR/update_icon_cache +#!/bin/sh + +# update native pixbuf loaders +gdk-pixbuf-query-loaders --update-cache + +for icondir in $D/usr/share/icons/*/ ; do + if [ -d $icondir ] ; then + gtk-update-icon-cache -fqt $icondir + fi +done +EOF + fi + exit 0 +fi + for icondir in /usr/share/icons/* ; do if [ -d $icondir ] ; then gtk-update-icon-cache -qt $icondir |