nautilus, stardict等gtk程序,
经常对键盘失去响应,特别是按了shift键后。
终于知道到问题所在了,
失去响应后,在文字输入区域按鼠标邮件,
从邮件菜单中“输入法”选择"SCIM Input Method",
而不是"X输入法",
键盘立马就恢复响应。
仔细阅读了README文件:
/usr/share/doc/scim/README.GTK
主要内容列在下面,仔细看看吧,有好处的。
将GTK_IM_MODULE设为scim,而不是以前的xim
/etc/X11/Xsession.d/95xinput文件内容为:
export LANG="zh_CN.GBK" export G_BROKEN_FILENAMES=1 export XMODIFIERS="@im=SCIM" export GTK_IM_MODULE=scim #export GTK_IM_MODULE=xim #如果不用scim-gtk2-immodule,就要设置为xim,而不是scim scim -d
——————–README.GTK———————–
In GTK+ 2.x applications, you can use SCIM in two different modes, XIM mode or
GTK IM mode. In order to use GTK IM mode, you need to install package
scim-gtk2-immodule (which depends on scim-modules-socket). Then the
environment variable GTK_IM_MODULE will be used to determine which mode SCIM
will use. To use XIM mode, set GTK_IM_MODULE to xim (also remember you need
to set XMODIFIERS to @im=SCIM); to use GTK IM mode, set it to scim.
Note that all GTK+ applications should work fine with SCIM in XIM mode, so the
package scim-gtk2-immodule is not essential for using SCIM in GTK+/GNOME
environments. A big disadvantage of using GTK IM mode is that it may cause
mysterious crashes if the GTK+ application (or some module the application
dynamically loads) is linked to a different version of standard C++ library
(libstdc++) as SCIM is linked to. For example, Adobe Reader (acroread)
version 7 and the official Mozilla Firefox from mozilla.org are both linked to
libstdc++5, so they will crash if you try to use the SCIM packages in unstable
(which are linked to libstdc++6) with them in GTK IM mode. For more details,
look at Debian bug #323216 [1>.
….