summaryrefslogtreecommitdiff
path: root/fcitx5.sh
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-06-24 01:19:15 +0000
committerCoprDistGit <infra@openeuler.org>2025-06-24 01:19:15 +0000
commit42aff71ce04153fda62eb40b4b651f7410423e25 (patch)
tree39fe32c29a04fe692a4603224c730ce296d05fd7 /fcitx5.sh
parent426f73e3402baa8d04043453d1d25b69f76e60ed (diff)
automatic import of fcitx5
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