X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=blobdiff_plain;f=recipes%2Fgtk%2Fgtk-touchscreen-mode-enable.bb;h=46607d257703a60a5e2bc5842286afbfb0d1993f;hp=08a0185e3c6b6af6e21ee3cdf87d836a4d557bd9;hb=4e4fdd09c12ef76b2705d410e8fa16cca4eb8560;hpb=7a5d0caa5f496871e945f16cb590631f794b1a87 diff --git a/recipes/gtk/gtk-touchscreen-mode-enable.bb b/recipes/gtk/gtk-touchscreen-mode-enable.bb index 08a0185..46607d2 100644 --- a/recipes/gtk/gtk-touchscreen-mode-enable.bb +++ b/recipes/gtk/gtk-touchscreen-mode-enable.bb @@ -2,15 +2,21 @@ DESCRIPTION = "Enable gtk-touchscreen-mode in gtkrc" RDEPENDS = "gtk+" -PR = "r2" +PR = "r1" 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 +mkdir -p ${sysconfdir}/gtk-2.0 +touch ${sysconfdir}/gtk-2.0/gtkrc +sed -i /gtk-touchscreen-mode = 1/d ${sysconfdir}/gtk-2.0/gtkrc +echo 'gtk-touchscreen-mode = 1' >> ${sysconfdir}/gtk-2.0/gtkrc } + +pkg_postrm() { +#!/bin/sh +sed -i /gtk-touchscreen-mode = 1/d ${sysconfdir}/gtk-2.0/gtkrc +} +