diff options
author | Frans Meulenbroeks <fransmeulenbroeks@yahoo.com> | 2006-06-07 20:06:48 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-06-07 20:06:48 +0000 |
commit | 9c685878a4f054562e8a2bddcf195ae44aac3484 (patch) | |
tree | 1caf03e286a952e88006bc1f3891820184f22d07 /packages/zaurusd/files/zaurus-hinge.matchbox-portrait | |
parent | 82281183231cf5d72da214e42e7340bfcd900e13 (diff) | |
parent | 759e5b0223f56d360fdd1e2eda81aac574089dda (diff) |
merge of 0fbcc5da7abe05787c6a591e53e9072cb3b115d5
and 99f9fc9ea4f05af6472ec5a42c5a6516440654e6
Diffstat (limited to 'packages/zaurusd/files/zaurus-hinge.matchbox-portrait')
-rw-r--r-- | packages/zaurusd/files/zaurus-hinge.matchbox-portrait | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/zaurusd/files/zaurus-hinge.matchbox-portrait b/packages/zaurusd/files/zaurus-hinge.matchbox-portrait new file mode 100644 index 0000000000..bd04d328cc --- /dev/null +++ b/packages/zaurusd/files/zaurus-hinge.matchbox-portrait @@ -0,0 +1,26 @@ +#!/bin/sh + + if [ -x ${ZD_BINDIR}/xrandr ]; then + ${ZD_BINDIR}/xrandr -o left + fi + # just to be extra safe + sleep 1 + + 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 ${ZD_BINDIR}/mbinputmgr & + else + # A failsafe can't hurt + echo "Warning: Running mbinputmgr as root!" + ps aux | grep -q "mbinputmgr " || ${ZD_BINDIR}/mbinputmgr & + fi |