zrenx

2010年02月25日

Debian fcitx 设置

Filed under: Linux — zrenx @ 6:29 下午

最近Debian 下 fcitx 更新到3.6.3.
这个版本的fcitx相关文件位置从 ~/.fcitx/ 移到了 ~/.config/fcitx/。
然后我就发现我原来的fcitx配置不能用了,在把config移动到~/.config/fcitx/config 后还是不行。
怀疑启动设置方式有问题,找来了正统的设置方法:
新建文件 /etc/X11/Xsession.d/95xinput,添加如下内容:

export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=”fcitx”
export QT_IM_MODULE=”fcitx”
fcitx

重启X后发现还是没启动。
terminal 下执行 fcitx 提示说配置文件有错。
于是从 /usr/share/fcitx/data/config 把文件cp 过来,适当修改后, fcitx能启动了,但是输入状态条是灰色的.
修改 /usr/lib/gtk-2.0/2.10.0/immodule-files.d/libgtk2.0-0.immodules
找到 “xim” “X Input Method” “gtk20” “/usr/share/locale” “en:ko:ja:th:zh”
后面的语言列表里面加上”en”就可以了,因为我的系统Locale是en_US.UTF-8

另外一个Fcitx 的设置方法,似乎更加”正统”。

im-switch -z all_ALL -s fcitx

Eclipse崩溃一则

Filed under: Linux — zrenx @ 1:41 下午

Eclipse 在proposals弹出框按下回车后崩溃。

控制台下出错信息如下:

richard@r:~/bin/eclipse$ ./eclipse
The program ‘Eclipse’ received an X Window System error.
This probably reflects a bug in the program.
The error was ‘RenderBadPicture (invalid Picture parameter)’.
(Details: serial 61307 error_code 169 request_code 150 minor_code 7)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the –sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

系统是 Debian sid
看信息是图形方面的问题,想到早上刚更新过,打开history 一看唯一可能导致这问题的就只有 libcairo2 从1.8.8-2 升级到了 1.8.10-1。
重新安装了 apt archives 下 libcairo2_1.8.8-2_i386.deb 后问题解决。

给debian提交了bug report
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=571192

更新:此bug已fix, 更新libcairo2到1.8.10-2即可。

Powered by WordPress