我是用startx启动Openbox的。 为了在启动Openbox后能直接使用Fcitx,需要在.xinitrc里做以下设置。 虽然简单,但还是记在这里供以后参考。
[code="java"]
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
fcitx&
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
exec openbox-session
启动Openbox 时自动启动 Fcitx
猜你喜欢
转载自raver.iteye.com/blog/2174792
今日推荐
周排行