summaryrefslogtreecommitdiff
path: root/fcitx5.sh
blob: f1212133ecf0b6bdf9c67d39d66b3b6342559c9e (plain)
1
2
3
4
5
6
7
8
9
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