SHA256
1
0
forked from pool/fcitx

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
This commit is contained in:
Ray chen 2013-12-07 04:47:55 +00:00 committed by Git OBS Bridge
parent 8bda3a9463
commit b042a0389b
2 changed files with 12 additions and 5 deletions

View File

@ -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

View File

@ -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: