galilette |
2004-07-03 03:19 |
reference:debian reference里的chap9 (http://www.debian.org/doc/manuals/reference/ch-tune.en.html#s-x-input)
fcitx的最新版是3.0.test4,不过编译&安装后无法调出. 所以只好装2.0.2稳定版 debian下, # aptitude install fcitx 就可以. 这个输入法的所有选项在~/.fcitx/config 和profile中,需要手动编辑.不过一看就能懂
主要是使用~/.xsession 文件. 首先确保/etc/X11/xsession.options (or Xsession.options)中有 allow-user-xsession 然后编辑或建立~/.xsession文件 然后就可以在里面建立环境变量,运行输入法等等了.唯一需要注意的是:如果使用~/.xsession文件的话,它的最后一行一定是用来运行window/session manager的(比如gnome, sawfish等) 我的~/.xsession: # This makes X work when I su to the root account. if [ -z "$XAUTHORITY" ]; then XAUTHORITY=$HOME/.Xauthority export XAUTHORITY fi
# set for fcitx #killall fcitx 没必要.如果fcitx每次只在.xsession里运行,那么x结束时fcitx也会被kill unset LC_CTYPE XMODIFIERS export LC_CTYPE=zh_CN.GB2312 fcitx & XMODIFIERS=@im=fcitx #上面两句这样写可以确保XMODIFIERS只在fcitx运行后才设置.颠倒次序好象会出错 export XMODIFIERS # gnome exec gnome-session |
|