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 7c7dd78854..d5fdcd521d 100644 --- a/meta/classes/gtk-icon-cache.bbclass +++ b/meta/classes/gtk-icon-cache.bbclass | |||
@@ -32,6 +32,24 @@ done | |||
32 | } | 32 | } |
33 | 33 | ||
34 | gtk_icon_cache_postrm() { | 34 | gtk_icon_cache_postrm() { |
35 | if [ "x$D" != "x" ]; then | ||
36 | if [ ! -f $INTERCEPT_DIR/update_icon_cache ]; then | ||
37 | cat << "EOF" > $INTERCEPT_DIR/update_icon_cache | ||
38 | #!/bin/sh | ||
39 | |||
40 | # update native pixbuf loaders | ||
41 | gdk-pixbuf-query-loaders --update-cache | ||
42 | |||
43 | for icondir in $D/usr/share/icons/*/ ; do | ||
44 | if [ -d $icondir ] ; then | ||
45 | gtk-update-icon-cache -fqt $icondir | ||
46 | fi | ||
47 | done | ||
48 | EOF | ||
49 | fi | ||
50 | exit 0 | ||
51 | fi | ||
52 | |||
35 | for icondir in /usr/share/icons/* ; do | 53 | for icondir in /usr/share/icons/* ; do |
36 | if [ -d $icondir ] ; then | 54 | if [ -d $icondir ] ; then |
37 | gtk-update-icon-cache -qt $icondir | 55 | gtk-update-icon-cache -qt $icondir |