blob: 10924fbeb51cc92b658181faa97e5a028928aa1e (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- fcitx-autostart.orig 2017-03-26 17:58:45.586105103 +0200
+++ fcitx-autostart 2017-03-26 17:59:09.693105345 +0200
@@ -1,4 +1,26 @@
-#!/bin/sh
+#!/bin/bash
+
+START="no"
+
+if [ "$XIM" = "fcitx" ]; then
+ START="yes"
+fi
+
+if [ "$XIM_PROGRAM" = "fcitx" ]; then
+ START="yes"
+fi
+
+if [ "$GTK_IM_MODULE" = "fcitx" ]; then
+ START="yes"
+fi
+
+if [ "$QT_IM_MODULE" = "fcitx" ]; then
+ START="yes"
+fi
+
+if [ "$START" = "no" ]; then
+ exit 0
+fi
# sleep for a little while to avoid duplicate startup
sleep 2
|