您的位置:首页 > 运维架构 > Linux

centos6 点击input method preferences 没有反应--python版本造成

2016-10-24 15:41 288 查看
ibus输入法问题,1:centos6.6中System-》Preferences-》input
method中设置ibus,点击input method preferences 没有反应;2:右上角pannel中没有输入法选择。

原因是自己把系统默认的python2.6升级到2.7

解决办法是在terminal中打开/usr/libexec/ibus-ui-gtk/usr/ bin/ibus-setup/usr/libexec/ibus-engine-table并把其中到“exec python”改为“exec python2.6”。

然后安装(安装过直接忽略):

yum -y install ibus-table

yum -y install ibus-pinyin

centos6.7中System-》Preferences-》input method,选择ibus,然后重启:在root下直接输入reboot

detail:

[root@localhost libexec]# python2

Python 2.7.12 (default, Oct  6 2016, 23:31:29) 

[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> 

[root@localhost libexec]# python2.6

Python 2.6.6 (r266:84292, May 22 2015, 08:34:51) 

[GCC 4.4.7 20120313 (Red Hat 4.4.7-15)] on linux2

Type "help", "copyright", "credits" or "license" for more information.

>>> 

[willie@localhost Desktop]$ cd /usr/libexec/

[willie@localhost libexec]$ su

Password: 

[root@localhost libexec]# chmod +w ibus-ui-gtk

[root@localhost libexec]# chmod +w ibus-engine-table

[root@localhost libexec]# vim ibus-ui-gtk

[root@localhost libexec]# vim ibus-engine-table

[root@localhost libexec]# cd /usr/bin

[root@localhost bin]# chmod +w ibus-setup

[root@localhost bin]# vim ibus-setup

System-》Preferences-》input method-》Select
an input method-》Chinese-》Pinyin-》Add-》Close

按键盘Crtl+Shift,发现已经可以使用拼音输入法了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐