LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 682|回复: 0

请教:scim中文配置问题——我的配置导致和ldoce5冲突!

[复制链接]
发表于 2009-12-23 11:32:11 | 显示全部楼层 |阅读模式
不知道各位是如何配置scim的。我的配置过程为:
1. You need to choose zh_CN.UTF-8 for the support of Chinese, at the same time you should default the local to be en_US.UTF-8:
   sudo dpkg-reconfigure locales
2.
sudo apt-get install scim scim-pinyin ttf-wqy-zenhei xfonts-wqy scim-qtimm

Then:
sudo gedit /etc/X11/Xsession.d/95xinput
add something like:

/usr/bin/scim -d
XMODIFIERS="@im=SCIM"
export XMODIFIERS
export GTK_IM_MODULE="scim"
export QT_IM_MODULE="scim"


Then:
sudo chmod 755 /etc/X11/Xsession.d/95xinput

And last
restart your X-window
OK!

完成之后就能正常查看和输入中文了。
但是有个问题,就是里面的
export GTK_IM_MODULE="scim"
这一句,如果我加上后,那么安装好了ldoce5(朗文当代英语词典5)后无法在非root用户状态启动,每次得到提示为:
[15:18:22@~/ldoce5]$ ./ldoce5
./run-ldoce5.sh: line 131:  8298 Segmentation fault      "$prog" ${1+"$@"}

非得要使用$ sudo ./ldoce5才行。
后来我把export GTK_IM_MODULE="scim"这句去掉后,ldoce5一切正常了。但是好像scim又有问题,比如在firefox里面又无法启动了。

请问到底该如何配置呢,export GTK_IM_MODULE="scim"这句是否可以去掉? 怎么样回避与ldoce5冲突的问题呢?谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表