summaryrefslogtreecommitdiff
path: root/misc/fcitx/fcitx-autostart.patch
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2017-08-30 21:05:50 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-10-11 06:19:58 +0700
commit5f7670e209408c8579d13ab1092cfc4ccee408ca (patch)
treea2e626b98d32e9f2f400945ef61a7563ca25f689 /misc/fcitx/fcitx-autostart.patch
parent79607a1a414349834c8fe243a200291ce5254cbf (diff)
downloadslackbuilds-5f7670e209408c8579d13ab1092cfc4ccee408ca.tar.gz
misc/fcitx: Updated for version 4.2.9.4.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'misc/fcitx/fcitx-autostart.patch')
-rw-r--r--misc/fcitx/fcitx-autostart.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/misc/fcitx/fcitx-autostart.patch b/misc/fcitx/fcitx-autostart.patch
new file mode 100644
index 0000000000..d2d206bb09
--- /dev/null
+++ b/misc/fcitx/fcitx-autostart.patch
@@ -0,0 +1,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_MOFULE" = "fcitx" ]; then
++ START="yes"
++fi
++
++if [ "$START" = "no" ]; then
++ exit 0
++fi
+
+ # sleep for a little while to avoid duplicate startup
+ sleep 2