forked from pool/fcitx
Takashi Iwai
2659a04ace
- Fix xim.d script for KDE Plasma (boo#1194916); $WINDOWMANAGER check needs to be adjusted OBS-URL: https://build.opensuse.org/request/show/947619 OBS-URL: https://build.opensuse.org/package/show/M17N/fcitx?expand=0&rev=165
22 lines
503 B
Plaintext
22 lines
503 B
Plaintext
#make sure set these vars before dbus-launch
|
|
export LC_CTYPE=$LANG
|
|
export XMODIFIERS="@im=fcitx"
|
|
export GTK_IM_MODULE=fcitx
|
|
export QT_IM_SWITCHER=imsw-multi
|
|
export QT_IM_MODULE=fcitx
|
|
|
|
case "$WINDOWMANAGER" in
|
|
*gnome*|*plasma*|*xfce*|*lxde*)
|
|
# started via xdg autostart (boo#947576)
|
|
# explicitly set below, as referred in xdg autostart
|
|
export INPUT_METHOD=fcitx
|
|
;;
|
|
*)
|
|
# FIXME: a little bit of delay is required to avoid race (boo#947576)
|
|
(sleep 2; fcitx -d) &
|
|
;;
|
|
esac
|
|
|
|
# success:
|
|
return 0
|