From b042a0389be33ce6ab20d5dbea06e47d8b2204ab3c98d5e8e8ed383545b58237 Mon Sep 17 00:00:00 2001 From: Ray chen Date: Sat, 7 Dec 2013 04:47:55 +0000 Subject: [PATCH] Accepting request 209703 from home:swyear:branches:M17N OBS-URL: https://build.opensuse.org/request/show/209703 OBS-URL: https://build.opensuse.org/package/show/M17N/fcitx?expand=0&rev=80 --- fcitx.changes | 5 +++++ xim.d-fcitx | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) 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: