summaryrefslogtreecommitdiff
path: root/fcitx5.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fcitx5.sh')
-rwxr-xr-xfcitx5.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/fcitx5.sh b/fcitx5.sh
new file mode 100755
index 0000000..f121213
--- /dev/null
+++ b/fcitx5.sh
@@ -0,0 +1,10 @@
+if [ ! "$XDG_SESSION_TYPE" = "tty" ] # if this is a gui session (not tty)
+then
+ # let's use fcitx instead of fcitx5 to make flatpak happy
+ # this may break behavior for users who have installed both
+ # fcitx and fcitx5, let then change the file on their own
+ export INPUT_METHOD=fcitx
+ export GTK_IM_MODULE=fcitx
+ export QT_IM_MODULE=fcitx
+ export XMODIFIERS=@im=fcitx
+fi