summaryrefslogtreecommitdiff
path: root/packages/matchbox-keyboard/files
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2007-08-16 22:26:29 +0000
committerStefan Schmidt <stefan@datenfreihafen.org>2007-08-16 22:26:29 +0000
commit42456d94fcabdaf84e7e05623a643c59ca3c43a1 (patch)
treef8990aaa908a3e9c56e0a52c0c29a867b5cffab3 /packages/matchbox-keyboard/files
parent1aeb81320d30622f09609f5569d302d527b3cef7 (diff)
matchbox-keyboard-inputmethod: Add matchbox-keyboard variant with gtk
input-method support. (modified version from poky)
Diffstat (limited to 'packages/matchbox-keyboard/files')
-rw-r--r--packages/matchbox-keyboard/files/80matchboxkeyboard20
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/matchbox-keyboard/files/80matchboxkeyboard b/packages/matchbox-keyboard/files/80matchboxkeyboard
new file mode 100644
index 0000000000..a30ddb01ad
--- /dev/null
+++ b/packages/matchbox-keyboard/files/80matchboxkeyboard
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+CMD=""
+
+if [ "$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
+else
+ CMD="matchbox-keyboard -d"
+fi
+
+
+# Delay to make sure the window manager is active
+
+if [ "$CMD" ]; then
+ (sleep 2 && $CMD) &
+fi