2013-12-07 05:47:55 +01:00
|
|
|
#make sure set these vars before dbus-launch
|
2012-06-12 10:16:02 +02:00
|
|
|
export LC_CTYPE=$LANG
|
|
|
|
export XMODIFIERS="@im=fcitx"
|
|
|
|
export GTK_IM_MODULE=fcitx
|
|
|
|
export QT_IM_SWITCHER=imsw-multi
|
|
|
|
export QT_IM_MODULE=fcitx
|
2013-12-07 05:47:55 +01:00
|
|
|
|
2015-10-22 20:05:26 +02:00
|
|
|
case "$WINDOWMANAGER" in
|
|
|
|
*gnome*|*kde*|*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
|
2011-06-14 08:03:57 +02:00
|
|
|
|
|
|
|
# success:
|
2015-10-02 04:58:54 +02:00
|
|
|
return 0
|