CentOS 7 GNOME 桌面不能输入中文

一下子所有的程序都不能输入中文了。

把 region & language 重新设定一遍就可以了。重启之后,或 logout 之后又不行了。

然后各种折腾,发现 imsettings-info 输出有问题,
是这个配置文件 /etc/X11/xinit/xinput.d/none.conf 。这样就可以在终端和应用程序里面输入中文了:


XIM=none
XIM_PROGRAM=ibus
XIM_ARGS=
GTK_IM_MODULE=ibus #gtk-im-context-simple
QT_IM_MODULE=ibus #xim
IMSETTINGS_IGNORE_ME=yes

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.