tango-icon-theme-enable: Add recipe for enable the icon theme once installed (hackish).
authorDavid-John Willis <John.Willis@Distant-earth.com>
Tue, 27 Oct 2009 20:53:05 +0000 (20:53 +0000)
committerKoen Kooi <koen@openembedded.org>
Wed, 28 Oct 2009 09:16:27 +0000 (10:16 +0100)
recipes/tango/tango-icon-theme-enable.bb [new file with mode: 0644]

diff --git a/recipes/tango/tango-icon-theme-enable.bb b/recipes/tango/tango-icon-theme-enable.bb
new file mode 100644 (file)
index 0000000..58ad592
--- /dev/null
@@ -0,0 +1,14 @@
+DESCRIPTION = "Enable tango-icon-theme in gtkrc"
+
+RDEPENDS = "tango-icon-theme"
+
+ALLOW_EMPTY_${PN} = "1"
+PACKAGE_ARCH = "all"
+
+pkg_postinst() {
+#!/bin/sh
+mkdir -p $D${sysconfdir}/gtk-2.0
+touch $D${sysconfdir}/gtk-2.0/gtkrc
+sed -i /gtk-icon-theme-name/d $D${sysconfdir}/gtk-2.0/gtkrc
+echo 'gtk-icon-theme-name = "Tango"' >> $D${sysconfdir}/gtk-2.0/gtkrc
+}