Skip navigation.

flying in the way of my own...

搞定了输入法在gtk程序里不能输入的问题

不知道从什么时候起,输入法就不能在gtk的程序里面输入了,包括gvim呀,gaim呀,firefox呀之类的,一直都没有弄好,今天想用gaim,不能输入怎么聊天呀,就又查了查,记得以前见到这个问题大概和/etc/gtk-2.0/gtk.immodules有关,今天又google了一下,发现好像在arch里面安装scim的时候会自动更新这个文件,所以查看了一下abs里面的scim.install,有一段
# 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.

关于国内外教材的一点小感想今天去了趟山大

Comments

zwfcarrot 17. March 2006, 05:11

给你加了个链接啊,呵呵~
你还上高中吗?高中就熟练使用Linux很好啊,呵呵~向你学习!

mingfal 17. March 2006, 13:55

呵呵,不敢当呀。

Thruth 17. March 2006, 16:01

JFLS还是实验的?

mingfal 17. March 2006, 16:58

什么事JFLS?

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

Type the two words displayed in the image below:


Smilies

July 2009
S M T W T F S
June 2009August 2009
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31