搞定了输入法在gtk程序里不能输入的问题
Thursday, 16. March 2006, 11:04:19
不知道从什么时候起,输入法就不能在gtk的程序里面输入了,包括gvim呀,gaim呀,firefox呀之类的,一直都没有弄好,今天想用gaim,不能输入怎么聊天呀,就又查了查,记得以前见到这个问题大概和/etc/gtk-2.0/gtk.immodules有关,今天又google了一下,发现好像在arch里面安装scim的时候会自动更新这个文件,所以查看了一下abs里面的scim.install,有一段
由此可知在安装scim的时候会执行
来更新gtk.immodules文件,所以就手动执行了一下,问题解决了。
I've been unable to input Chinese in gtk programs for a long time,including gvim,gaim,firefox etc.
I wanted to use gaim to chat just now,but I can't communicate with my friends without input method.So I decided to try solving the problem again.I remembered that this is because that there's something wrong with the file /etc/gtk-2.0/gtk.immodules.So I used google to search for some useful material.
From google I knew that when scim is being installed,the file gtk.immodule is updated.So I checked the scim.install in the directory /var/abs/extra/x11/scim and find something like this
So I realized that this line
is executed to update the gtk.immodules.So I did this manually and problem was solved.
# arg 1: the new package version
post_install() {
echo -n "updating gtk.immodules... "
/usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
echo "done."
}
由此可知在安装scim的时候会执行
/usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
来更新gtk.immodules文件,所以就手动执行了一下,问题解决了。
I've been unable to input Chinese in gtk programs for a long time,including gvim,gaim,firefox etc.
I wanted to use gaim to chat just now,but I can't communicate with my friends without input method.So I decided to try solving the problem again.I remembered that this is because that there's something wrong with the file /etc/gtk-2.0/gtk.immodules.So I used google to search for some useful material.
From google I knew that when scim is being installed,the file gtk.immodule is updated.So I checked the scim.install in the directory /var/abs/extra/x11/scim and find something like this
# arg 1: the new package version
post_install() {
echo -n "updating gtk.immodules... "
/usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
echo "done."
}
So I realized that this line
/usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
is executed to update the gtk.immodules.So I did this manually and problem was solved.















zwfcarrot # 17. March 2006, 05:11
你还上高中吗?高中就熟练使用Linux很好啊,呵呵~向你学习!
mingfal # 17. March 2006, 13:55
Thruth # 17. March 2006, 16:01
mingfal # 17. March 2006, 16:58