diff options
author | Richard Purdie <richard@openedhand.com> | 2007-05-29 19:02:03 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-05-29 19:02:03 +0000 |
commit | 25152eb8e7e5da2268fef8397bd5abad7c255d91 (patch) | |
tree | d5067722d20faf3ed8c60468cc97b74fa8c6cde8 /meta/packages/matchbox-keyboard/files | |
parent | 12a09987de4356cb507cf4e31ac4d1a7294d4772 (diff) | |
download | poky-25152eb8e7e5da2268fef8397bd5abad7c255d91.tar.gz |
matchbox-keyboard: Add session script to handle startup (linked to formfactor)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1809 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/matchbox-keyboard/files')
-rwxr-xr-x | meta/packages/matchbox-keyboard/files/80matchboxkeyboard | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/packages/matchbox-keyboard/files/80matchboxkeyboard b/meta/packages/matchbox-keyboard/files/80matchboxkeyboard new file mode 100755 index 0000000000..60d9ff0e5d --- /dev/null +++ b/meta/packages/matchbox-keyboard/files/80matchboxkeyboard | |||
@@ -0,0 +1,23 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | . /etc/formfactor/config | ||
4 | |||
5 | CMD="" | ||
6 | |||
7 | if [ "$DISPLAY_CAN_ROTATE" = "1" ]; then | ||
8 | if [ "$HAVE_KEYBOARD_PORTRAIT" = "1" -a "$HAVE_KEYBOARD_LANDSCAPE" = "0" ]; then | ||
9 | CMD="matchbox-keyboard -d -o landscape" | ||
10 | elif [ "$HAVE_KEYBOARD_LANDSCAPE" = "1" -a "$HAVE_KEYBOARD_PORTRAIT" = "0" ]; then | ||
11 | CMD="matchbox-keyboard -d -o portrait" | ||
12 | fi | ||
13 | elif [ "$HAVE_KEYBOARD" = "1" ]; then | ||
14 | # Have a physical keyboard, nothing to do | ||
15 | exit | ||
16 | fi | ||
17 | |||
18 | # Delay to make sure the window manager is active | ||
19 | |||
20 | if [ "$CMD" ]; then | ||
21 | (sleep 2 && $CMD) & | ||
22 | fi | ||
23 | |||