diff options
author | Richard Purdie <richard@openedhand.com> | 2008-08-19 16:06:48 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-08-19 16:06:48 +0000 |
commit | 4453d53007f4dfe8c45a094acd3cc6924d6cf075 (patch) | |
tree | bfd7f592bc5de2387a65f37deb47fd9062444cfc /meta/packages/matchbox-keyboard/files/80matchboxkeyboard.shbg | |
parent | b116e4057da8f34fee6ccfaa01b0776484ce6196 (diff) | |
download | openembedded-core-4453d53007f4dfe8c45a094acd3cc6924d6cf075.tar.gz openembedded-core-4453d53007f4dfe8c45a094acd3cc6924d6cf075.tar.bz2 openembedded-core-4453d53007f4dfe8c45a094acd3cc6924d6cf075.tar.xz openembedded-core-4453d53007f4dfe8c45a094acd3cc6924d6cf075.zip |
matchbox-keyboard: Change session script to start it after the desktop using dbus-wait removing the dodgy sleep call
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5073 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/matchbox-keyboard/files/80matchboxkeyboard.shbg')
-rwxr-xr-x | meta/packages/matchbox-keyboard/files/80matchboxkeyboard.shbg | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/packages/matchbox-keyboard/files/80matchboxkeyboard.shbg b/meta/packages/matchbox-keyboard/files/80matchboxkeyboard.shbg new file mode 100755 index 000000000..e6745c569 --- /dev/null +++ b/meta/packages/matchbox-keyboard/files/80matchboxkeyboard.shbg @@ -0,0 +1,23 @@ +#!/bin/sh + +. /etc/formfactor/config + +CMD="" + +if [ "$HAVE_KEYBOARD" = "0" ]; then + CMD="matchbox-keyboard -d" +elif [ "$DISPLAY_CAN_ROTATE" = "1" ]; then + if [ "$HAVE_KEYBOARD_PORTRAIT" = "1" -a "$HAVE_KEYBOARD_LANDSCAPE" = "0" ]; then + CMD="matchbox-keyboard -d -o landscape" + elif [ "$HAVE_KEYBOARD_LANDSCAPE" = "1" -a "$HAVE_KEYBOARD_PORTRAIT" = "0" ]; then + CMD="matchbox-keyboard -d -o portrait" + fi +fi + + +if [ "$CMD" ]; then + # Delay to make sure the window manager is active + # by waiting for the desktop to say its finished loading + dbus-wait org.matchbox_project.desktop Loaded + $CMD +fi |