summaryrefslogtreecommitdiff
path: root/misc/ibus/ibus-autostart
diff options
context:
space:
mode:
Diffstat (limited to 'misc/ibus/ibus-autostart')
-rw-r--r--misc/ibus/ibus-autostart23
1 files changed, 23 insertions, 0 deletions
diff --git a/misc/ibus/ibus-autostart b/misc/ibus/ibus-autostart
new file mode 100644
index 0000000000..29fab3a050
--- /dev/null
+++ b/misc/ibus/ibus-autostart
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+START="no"
+
+if [ "$XIM" = "ibus" ]; then
+ START="yes"
+fi
+
+if [ "$XIM_PROGRAM" = "ibus" ]; then
+ START="yes"
+fi
+
+if [ "$GTK_IM_MODULE" = "ibus" ]; then
+ START="yes"
+fi
+
+if [ "$QT_IM_MOFULE" = "ibus" ]; then
+ START="yes"
+fi
+
+if [ "$START" = "yes" ]; then
+ ibus-daemon -drx
+fi