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-landscape | |
parent | 82281183231cf5d72da214e42e7340bfcd900e13 (diff) | |
parent | 759e5b0223f56d360fdd1e2eda81aac574089dda (diff) |
merge of 0fbcc5da7abe05787c6a591e53e9072cb3b115d5
and 99f9fc9ea4f05af6472ec5a42c5a6516440654e6
Diffstat (limited to 'packages/zaurusd/files/zaurus-hinge.matchbox-landscape')
-rw-r--r-- | packages/zaurusd/files/zaurus-hinge.matchbox-landscape | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/zaurusd/files/zaurus-hinge.matchbox-landscape b/packages/zaurusd/files/zaurus-hinge.matchbox-landscape new file mode 100644 index 0000000000..e7b92b5140 --- /dev/null +++ b/packages/zaurusd/files/zaurus-hinge.matchbox-landscape @@ -0,0 +1,21 @@ + #!/bin/sh + + # 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 ${ZD_BINDIR}/mbinputmgr + else + cat "/tmp/gpe-panel.session-$panel_user" | grep -q panel || killproc ${ZD_BINDIR}/mbinputmgr + rm "/tmp/gpe-panel.session-$panel_user" + fi + + # urg mbinputmgr should kill below + killproc ${ZD_BINDIR}/matchbox-keyboard + killproc ${ZD_BINDIR}/matchbox-stroke + if [ -x ${ZD_BINDIR}/xrandr ]; then + xrandr -o normal + fi |