|
- 环境:app-i18n/fcitx-4.1.1::gentoo-zh,LANG=en_US.UTF-8
- fcitx以用户richard身份运行。以用户richard身份运行的GTK+程序可使用fcitx。
- 以su -l的root身份运行GTK+程序,没有DBUS_SESSION_BUS_ADDRESS,设置GTK_IM_MODULE=fcitx,无法使用fcitx;
- 以su的root身份运行GTK+程序,有DBUS_SESSION_BUS_ADDRESS,设置GTK_IM_MODULE=fcitx,无法使用fcitx,且有如下warning:
- ** (gvim:5396): WARNING **: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
复制代码 - 以su -l的root身份运行GTK+程序,设置GTK_IM_MODULE=fcitx,无法使用fcitx。
- 以su/su -l的root身份运行GTK+程序,设置GTK_IM_MODULE=xim,可以使用fcitx;
- 以su -l的root身份运行"dbus-launch --exit-with-session GTK+程序",无法使用fcitx。
呃,问题究竟在哪里...
.xinitrc:- # == xinitrc.d ==
- if [ -d /etc/X11/xinit/xinitrc.d ] ; then
- for f in /etc/X11/xinit/xinitrc.d/* ; do
- [ -x "$f" ] && . "$f"
- done
- unset f
- fi
- # == ibus ==
- # export XMODIFIERS="@im=ibus"
- # export GTK_IM_MODULE="ibus"
- # export QT_IM_MODULE="xim"
- # ibus-daemon -d -x
- # == fcitx ==
- export XMODIFIERS="@im=fcitx"
- export XIM=fcitx
- export XIM_PROGRAM=fcitx
- export QT_IM_MODULE=fcitx
- export GTK_IM_MODULE=fcitx
- # fcitx &
- # == env ==
- export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
- export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on'
- # == misc ==
- xrdb -merge ~/.Xresources
- # feh --bg-center wallpapers/gentoo-minimal-1600x1200.jpg
- feh --bg-center wallpapers/grass.jpg
- # exec dbus-launch --exit-with-session --sh-syntax ck-launch-session fvwm
- exec fvwm
复制代码 |
|