From: David-John Willis Date: Tue, 3 Nov 2009 11:29:39 +0000 (+0000) Subject: gtk-touchscreen-mode-enable: Add little recipe that sets this in GTKRC. X-Git-Tag: Release-2010-05/1~178 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a5d0caa5f496871e945f16cb590631f794b1a87;p=openpandora.oe.git gtk-touchscreen-mode-enable: Add little recipe that sets this in GTKRC. --- diff --git a/recipes/gtk/gtk-touchscreen-mode-enable.bb b/recipes/gtk/gtk-touchscreen-mode-enable.bb new file mode 100644 index 0000000..08a0185 --- /dev/null +++ b/recipes/gtk/gtk-touchscreen-mode-enable.bb @@ -0,0 +1,16 @@ +DESCRIPTION = "Enable gtk-touchscreen-mode in gtkrc" + +RDEPENDS = "gtk+" + +PR = "r2" + +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-touchscreen-mode = 1/d $D${sysconfdir}/gtk-2.0/gtkrc +echo 'gtk-touchscreen-mode = 1' >> $D${sysconfdir}/gtk-2.0/gtkrc +}