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

作者: jaket5219999 2017-01-18 09:51:27

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,发现已经可以使用拼音输入法了。


 


本文永久更新地址:http://www.linuxdiyf.com/linux/27909.html

相关资讯