diff --git a/fcitx.changes b/fcitx.changes index a498b92..316cc3b 100644 --- a/fcitx.changes +++ b/fcitx.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Dec 7 04:23:04 UTC 2013 - swyear@gmail.com + +- fix fcitx can't input in gnome-terminal + ------------------------------------------------------------------- Sat Nov 2 07:31:38 UTC 2013 - i@marguerite.su diff --git a/xim.d-fcitx b/xim.d-fcitx index ee1b53d..b384556 100644 --- a/xim.d-fcitx +++ b/xim.d-fcitx @@ -3,17 +3,19 @@ if ! type -p fcitx > /dev/null 2>&1 ; then 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 - +#make sure set these vars before dbus-launch 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 + +# 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 + fcitx -d # success: