summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recipes/tango/tango-icon-theme-enable.bb14
1 files changed, 14 insertions, 0 deletions
diff --git a/recipes/tango/tango-icon-theme-enable.bb b/recipes/tango/tango-icon-theme-enable.bb
new file mode 100644
index 0000000000..58ad5924f8
--- /dev/null
+++ b/recipes/tango/tango-icon-theme-enable.bb
@@ -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
+}