SHA256
1
0
forked from pool/fcitx
fcitx/xim.d-fcitx

21 lines
503 B
Plaintext
Raw Normal View History

if ! type -p fcitx > /dev/null 2>&1 ; then
echo "fcitx is not installed. please run `sudo zypper in fcitx`."
return 1
fi
# Avoid relying on autolaunch to improvise D-Bus sessions for each process
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
eval `dbus-launch --sh-syntax --exit-with-session`
fi
export LC_CTYPE=$LANG
export XMODIFIERS="@im=fcitx"
export GTK_IM_MODULE=fcitx
export GTK3_IM_MODULE=fcitx
export QT_IM_SWITCHER=imsw-multi
export QT_IM_MODULE=fcitx
fcitx -d
# success:
return 0