Add support for ibus

This commit is contained in:
Salt 2020-06-23 04:19:49 -05:00
parent a9e587b33a
commit b054d1d1ca

View File

@ -173,11 +173,15 @@ step_preexecute() {
dbus-update-activation-environment --verbose --systemd --all >/dev/null 2>&1 dbus-update-activation-environment --verbose --systemd --all >/dev/null 2>&1
fi fi
unset hasdbus unset hasdbus
# uim settings # IME settings
if has uim; then if has uim; then
export GTK_IM_MODULE='uim' export GTK_IM_MODULE='uim'
export QT_IM_MODULE='uim' export QT_IM_MODULE='uim'
export XMODIFIERS='@im=uim' export XMODIFIERS='@im=uim'
elif has ibus; then
export GTK_IM_MODULE='ibus'
export QT_IM_MODULE='ibus'
export XMODIFIERS='@im=ibus'
fi fi
# kcminit/Qt settings # kcminit/Qt settings
if has qt5ct; then if has qt5ct; then