[oe-commits] David-John Willis : tango-icon-theme-enable: Add recipe for enable the icon theme once installed (hackish).

git version control git at git.openembedded.org
Wed Oct 28 09:17:41 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: a71f287b6f15da6e91d31dc89bc49be183535516
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=a71f287b6f15da6e91d31dc89bc49be183535516

Author: David-John Willis <John.Willis at Distant-earth.com>
Date:   Tue Oct 27 20:53:05 2009 +0000

tango-icon-theme-enable: Add recipe for enable the icon theme once installed (hackish).

---

 recipes/tango/tango-icon-theme-enable.bb |   14 ++++++++++++++
 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 0000000..58ad592
--- /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
+}





More information about the Openembedded-commits mailing list