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=d865ad0b4ed19e72ec8f966df5f16fcc4900bb3b;hb=ec48708469122d3f70e66829ba91aaf7f769421c;hpb=79beff08f4770e7f4cabfe61707c245b4189a4f0 diff --git a/recipes/gtk/gtk-touchscreen-mode-enable.bb b/recipes/gtk/gtk-touchscreen-mode-enable.bb index d865ad0..46607d2 100644 --- a/recipes/gtk/gtk-touchscreen-mode-enable.bb +++ b/recipes/gtk/gtk-touchscreen-mode-enable.bb @@ -9,8 +9,14 @@ 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 +} +