summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc')
-rw-r--r--meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc15
1 files changed, 7 insertions, 8 deletions
diff --git a/meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc b/meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc
index 9fd10126c1..0bd48143a9 100644
--- a/meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc
+++ b/meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc
@@ -8,18 +8,17 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=56a830bbe6e4697fe6cbbae01bb7c2b2"
8SECTION = "x11" 8SECTION = "x11"
9DEPENDS = "" 9DEPENDS = ""
10 10
11inherit autotools pkgconfig allarch 11inherit autotools pkgconfig allarch gtk-icon-cache
12 12
13FILES_${PN} += "${datadir}" 13FILES_${PN} += "${datadir}"
14 14
15EXTRA_OECONF += "--with-iconmap=${STAGING_LIBDIR_NATIVE}/../libexec/icon-name-mapping" 15EXTRA_OECONF += "--with-iconmap=${STAGING_LIBDIR_NATIVE}/../libexec/icon-name-mapping"
16 16
17#explictly setting "Sato" as default icon theme to avoid icon missing due to 17# Explictly setting "Sato" as the default icon theme to avoid flickering from
18#tricky race condition 18# the desktop and settings daemon racing. This shouldn't be done here but in the sato image
19pkg_postinst_${PN} () { 19pkg_postinst_${PN} () {
20 if [ "x$D" != "x" ]; then 20 mkdir -p $D/etc/gtk-2.0
21 exit 1 21
22 fi 22 grep -s -q -e ^gtk-icon-theme-name.*\"Sato\" $D/etc/gtk-2.0/gtkrc || \
23 gtk-update-icon-cache -q /usr/share/icons/Sato 23 echo 'gtk-icon-theme-name = "Sato"' >> $D/etc/gtk-2.0/gtkrc
24 echo 'gtk-icon-theme-name = "Sato"' >> /etc/gtk-2.0/gtkrc
25} 24}