summaryrefslogtreecommitdiff
path: root/packages/zaurusd/files/mbinputmgr-honor-user-prefs.patch
diff options
context:
space:
mode:
authorErik Hovland <erik@hovland.org>2006-05-08 19:19:53 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-05-08 19:19:53 +0000
commitceb9beb6476d646012e9ba52f2a67eb0038f90ae (patch)
tree07c52d11c290ca332f9ef23ac2f35764a25d54e4 /packages/zaurusd/files/mbinputmgr-honor-user-prefs.patch
parentfcb80fdd84521a656ec4e57dde83c10c7f589182 (diff)
parent7ed412e1e868f20a0e803e91e3d7e3529f61b44e (diff)
merge of 59f97700899a07187b176ccd4ee9885184f096ae
and b1db4ad66d7affe171f6be3fc1e203540febb857
Diffstat (limited to 'packages/zaurusd/files/mbinputmgr-honor-user-prefs.patch')
-rw-r--r--packages/zaurusd/files/mbinputmgr-honor-user-prefs.patch65
1 files changed, 0 insertions, 65 deletions
diff --git a/packages/zaurusd/files/mbinputmgr-honor-user-prefs.patch b/packages/zaurusd/files/mbinputmgr-honor-user-prefs.patch
deleted file mode 100644
index e2d56874c9..0000000000
--- a/packages/zaurusd/files/mbinputmgr-honor-user-prefs.patch
+++ /dev/null
@@ -1,65 +0,0 @@
---- zaurusd/scripts/zaurus-hinge.in 2006-03-24 18:23:15.000000000 +0100
-+++ zaurusd/scripts/zaurus-hinge 2006-03-24 18:33:24.480748696 +0100
-@@ -18,6 +18,10 @@
- exit 1
- fi
-
-+panel_user="`ps aux|grep matchbox-panel|grep -v grep | awk '{print $2}'`"
-+
-+
-+
- STATE=$1
-
- if [ $STATE = "3" ]; then
-@@ -29,8 +33,21 @@
- fi
-
- if [ $STATE = "0" ]; then
-- #echo "lanscape"
-- killproc @bindir@/mbinputmgr
-+ #echo "landscape"
-+
-+ # As matchbox-panel updates its written configuration right after an applet dies / is killed, we can not be sure
-+ # whether the user had gpe-panel in his preferences after rotating to portrait. And since there is a slim chance
-+ # that a user changes his preferences from time to time, we renew that dumped configuration every now and then ;)
-+
-+ if ! test -e "/tmp/gpe-panel.session-$panel_user"
-+ then
-+ test -e /home/$panel_user/.matchbox/mbdock.session && cp /home/$panel_user/.matchbox/mbdock.session "/tmp/gpe-panel.session-$panel_user"
-+ test -e "/tmp/gpe-panel.session-$panel_user" && cat "/tmp/gpe-panel.session-$panel_user" | grep -q panel || killproc @bindir@/mbinputmgr
-+ else
-+ cat "/tmp/gpe-panel.session-$panel_user" | grep -q panel || killproc @bindir@/mbinputmgr
-+ rm "/tmp/gpe-panel.session-$panel_user"
-+ fi
-+
- # urg mbinputmgr should kill below
- killproc @bindir@/matchbox-keyboard
- killproc @bindir@/matchbox-stroke
-@@ -47,8 +64,25 @@
- fi
- # just to be extra safe
- sleep 1
-- if [ -x @bindir@/mbinputmgr ]; then
-- @bindir@/mbinputmgr &
-+
-+ echo "panel_user = [$panel_user]"
-+
-+ if ! test -e "/tmp/gpe-panel.session-$panel_user"
-+ then
-+ cp /home/$panel_user/.matchbox/mbdock.session "/tmp/gpe-panel.session-$panel_user"
-+ else
-+ rm "/tmp/gpe-panel.session-$panel_user"
- fi
-+
-+ if test -n "$panel_user"
-+ then
-+ echo "Running panel as user [$panel_user]"
-+ ps aux | grep "$panel_user" | grep -q "mbinputmgr " || su $panel_user -c @bindir@/mbinputmgr &
-+ else
-+ # A failsafe can't hurt
-+ echo "Warning: Running mbinputmgr as root!"
-+ ps aux | grep -q "mbinputmgr " || @bindir@/mbinputmgr &
-+ fi
-+
- exit 0
- fi