diff options
author | CoprDistGit <infra@openeuler.org> | 2025-06-24 01:19:15 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-06-24 01:19:15 +0000 |
commit | 42aff71ce04153fda62eb40b4b651f7410423e25 (patch) | |
tree | 39fe32c29a04fe692a4603224c730ce296d05fd7 /fcitx5.sh | |
parent | 426f73e3402baa8d04043453d1d25b69f76e60ed (diff) |
automatic import of fcitx5
Diffstat (limited to 'fcitx5.sh')
-rwxr-xr-x | fcitx5.sh | 10 |
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 |