38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
From 22e94b358cd8b84251c713f4ab1f68062e4f634d Mon Sep 17 00:00:00 2001
|
|
From: panchenbo <panchenbo@uniontech.com>
|
|
Date: Thu, 24 Jun 2021 18:11:19 +0800
|
|
Subject: [PATCH] fix fcitx change other language problem
|
|
|
|
---
|
|
data/none.in.in | 19 +++++++++++++------
|
|
1 file changed, 13 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/data/none.in.in b/data/none.in.in
|
|
index bc95ebe..7924e3e 100644
|
|
--- a/data/none.in.in
|
|
+++ b/data/none.in.in
|
|
@@ -1,6 +1,13 @@
|
|
-XIM=none
|
|
-XIM_PROGRAM=
|
|
-XIM_ARGS=
|
|
-GTK_IM_MODULE=gtk-im-context-simple
|
|
-QT_IM_MODULE=xim
|
|
-IMSETTINGS_IGNORE_ME=yes
|
|
+XIM=fcitx
|
|
+XIM_PROGRAM=/usr/bin/fcitx
|
|
+ICON="/usr/share/pixmaps/fcitx.png"
|
|
+XIM_ARGS="-D"
|
|
+PREFERENCE_PROGRAM=/usr/bin/fcitx-configtool
|
|
+SHORT_DESC="FCITX"
|
|
+GTK_IM_MODULE=fcitx
|
|
+if test -f /usr/lib/qt4/plugins/inputmethods/qtim-fcitx.so || test -f /usr/lib64/qt4/plugins/inputmethods/qtim-fcitx.so || test -f /usr/lib/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so || test -f /usr/lib64/qt5/plugins/platforminputcontexts/libfcitxplatforminputcontextplugin.so;
|
|
+then
|
|
+ QT_IM_MODULE=fcitx
|
|
+else
|
|
+ QT_IM_MODULE=xim
|
|
+fi
|
|
--
|
|
2.20.1
|
|
|
|
|