From 7a5d0caa5f496871e945f16cb590631f794b1a87 Mon Sep 17 00:00:00 2001 From: David-John Willis Date: Tue, 3 Nov 2009 11:29:39 +0000 Subject: [PATCH] gtk-touchscreen-mode-enable: Add little recipe that sets this in GTKRC. --- recipes/gtk/gtk-touchscreen-mode-enable.bb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 recipes/gtk/gtk-touchscreen-mode-enable.bb 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 +} -- 2.39.5