|
发表于 2008-6-4 13:13:24
|
显示全部楼层
1.先启动scim
写一个scim.sh脚本,放到~/.kde/Autostart目录下:- #!/bin/bash
- /usr/bin/scim -d &
复制代码
2. 用其他输入法如fcitx, 不用scim
1)在~/.profile里面加几行- unset QT_IM_MODULE
- unset GTK_IM_MODULE
- export XMODIFIERS="@im=fcitx"
- export XIM_PROGRAM="/usr/bin/fcitx"
复制代码
2)修改/etc/gtk-2.0/gtk.immodules, 把最后几行修改一下, 中文环境不要调用对应的scim动态库- "/usr/lib/gtk-2.0/immodules/im-scim.so"
- "scim" "SCIM Input Method" "scim" "/usr/share/locale" "ja:ko:zh"
- "/usr/lib/gtk-2.0/immodules/im-scim-bridge.so"
- "scim-bridge" "SCIM Bridge Input Method" "" "" ""
复制代码
改成- "/usr/lib/gtk-2.0/immodules/im-scim.so"
- "scim" "SCIM Input Method" "scim" "/usr/share/locale" "ja:ko"
- "/usr/lib/gtk-2.0/immodules/im-scim-bridge.so"
- "scim-bridge" "SCIM Bridge Input Method" "" "" "ja"
复制代码
3)修改/etc/rc.d/rc.M, 把启动时生成gtk.immodules功能去掉- if [ -x /usr/bin/gtk-query-immodules-2.0 ]; then
- echo "Updating gtk.immodules: gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules"
- # /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules 2> /dev/null
- fi
复制代码 |
|