summaryrefslogtreecommitdiff
path: root/source/x/ibus/ibus-autostart
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/ibus/ibus-autostart')
-rw-r--r--source/x/ibus/ibus-autostart27
1 files changed, 27 insertions, 0 deletions
diff --git a/source/x/ibus/ibus-autostart b/source/x/ibus/ibus-autostart
new file mode 100644
index 00000000..4f274335
--- /dev/null
+++ b/source/x/ibus/ibus-autostart
@@ -0,0 +1,27 @@
+#!/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
+ if [ "$1" = "--plasma" ]; then
+ ibus-daemon -drx --panel=/usr/libLIBDIRSUFFIX/kimpanel-ibus-panel
+ else
+ ibus-daemon -drx
+ fi
+fi