diff options
Diffstat (limited to 'meta/classes/gtk-icon-cache.bbclass')
-rw-r--r-- | meta/classes/gtk-icon-cache.bbclass | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/meta/classes/gtk-icon-cache.bbclass b/meta/classes/gtk-icon-cache.bbclass index 4a59b74754..d1aeee5f89 100644 --- a/meta/classes/gtk-icon-cache.bbclass +++ b/meta/classes/gtk-icon-cache.bbclass | |||
@@ -11,19 +11,28 @@ fi | |||
11 | # Update the pixbuf loaders in case they haven't been registered yet | 11 | # Update the pixbuf loaders in case they haven't been registered yet |
12 | gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders | 12 | gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders |
13 | 13 | ||
14 | gtk-update-icon-cache -q /usr/share/icons/hicolor | 14 | for icondir in /usr/share/icons/* ; do |
15 | if [ -d $icondir ] ; then | ||
16 | gtk-update-icon-cache -qt $icondir | ||
17 | fi | ||
18 | done | ||
15 | } | 19 | } |
16 | 20 | ||
17 | gtk_icon_cache_postrm() { | 21 | gtk_icon_cache_postrm() { |
18 | gtk-update-icon-cache -q /usr/share/icons/hicolor | 22 | for icondir in /usr/share/icons/* ; do |
23 | if [ -d $icondir ] ; then | ||
24 | gtk-update-icon-cache -qt $icondir | ||
25 | fi | ||
26 | done | ||
19 | } | 27 | } |
20 | 28 | ||
21 | python populate_packages_append () { | 29 | python populate_packages_append () { |
22 | packages = bb.data.getVar('PACKAGES', d, 1).split() | 30 | packages = bb.data.getVar('PACKAGES', d, 1).split() |
31 | pkgdest = bb.data.getVar('PKGDEST', d, 1) | ||
23 | workdir = bb.data.getVar('WORKDIR', d, 1) | 32 | workdir = bb.data.getVar('WORKDIR', d, 1) |
24 | 33 | ||
25 | for pkg in packages: | 34 | for pkg in packages: |
26 | icon_dir = '%s/install/%s/%s/icons/hicolor' % (workdir, pkg, bb.data.getVar('datadir', d, 1)) | 35 | icon_dir = '%s/%s/%s/%s/icons' % (workdir, pkgdest, pkg, bb.data.getVar('datadir', d, 1)) |
27 | if not os.path.exists(icon_dir): | 36 | if not os.path.exists(icon_dir): |
28 | continue | 37 | continue |
29 | 38 | ||