LinuxSir.cn,穿越时空的Linuxsir!

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

请教一下:非root用户使用scim的问题

[复制链接]
发表于 2008-12-28 21:37:27 | 显示全部楼层 |阅读模式
root用户可调出,可输入,没问题。非root用户可调出,但基于QT的程序可输入,基于GTK的程序不能输入。请问还如何设置?
slackware 12.2
发表于 2008-12-28 22:50:15 | 显示全部楼层
I can use SCIM in GTK programs,but can't use it in QT programs,I'm using Konqueror now,as you see ,I can't type Chinese!
回复 支持 反对

使用道具 举报

发表于 2008-12-29 09:58:53 | 显示全部楼层
Post by cigerma;1931139
I can use SCIM in GTK programs,but can't use it in QT programs,I'm using Konqueror now,as you see ,I can't type Chinese!


export LC_CTYPE=zh_CN.UTF-8
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-12-29 20:28:31 | 显示全部楼层
好像改动/etc/profile.d/scim.sh,就行了:
if [ -x /usr/bin/scim ]; then
  # Enable legacy X applications to use scim:
  export XMODIFIERS="@im=SCIM"
  # Enable Qt/KDE applications to use scim:
  export QT_IM_MODULE="scim"
  export GTK_IM_MODULE="scim"
  # Make scim start automatically if the "magic key" Ctrl-Space is pressed:
  export XIM_PROGRAM="/usr/bin/scim -d"
fi
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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