]> code.ossystems Code Review - openembedded-core.git/commitdiff
sato-icon-theme: Explictly use "Sato" as gtk icon theme
authorZhai Edwin <edwin.zhai@intel.com>
Thu, 3 Mar 2011 11:54:09 +0000 (19:54 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Mar 2011 23:13:26 +0000 (23:13 +0000)
There is a tricky race condition that "Sato" icons got missing on
matchbox-desktop as low priority "hicolor" theme was chosen. Explictly
settting "Sato" in gtk config file to avoid this.

[BUGID #456] got fixed.

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
meta/recipes-sato/sato-icon-theme/sato-icon-theme.inc

index a1669c6f2e26857ba4bf1e81354406aedc81a41b..3ee76efdea26af532247d4e37189509b8fb55afe 100644 (file)
@@ -16,9 +16,12 @@ PACKAGE_ARCH = "all"
 
 EXTRA_OECONF += "--with-iconmap=${STAGING_LIBDIR_NATIVE}/../libexec/icon-name-mapping"
 
+#explictly setting "Sato" as default icon theme to avoid icon missing due to
+#tricky race condition
 pkg_postinst_${PN} () {
         if [ "x$D" != "x" ]; then
                 exit 1
         fi
         gtk-update-icon-cache -q /usr/share/icons/Sato
+        echo 'gtk-icon-theme-name = "Sato"' > /etc/gtk-2.0/gtkrc
 }