Gentoo Linux--Gnome3 ibus-sunpinyin配置热键

配置sunpinyin的热键,需要运行这个脚本

$ /usr/lib64/ibus-sunpinyin/ibus-setup-sunpinyin


python3下会出错:

$ /usr/lib64/ibus-sunpinyin/ibus-setup-sunpinyin File "/usr/share//ibus-sunpinyin/setup/main.py", line 427 mappings = [MappingInfo('togglebutton1', [('`',None), ('~',u'~')]), ^ SyntaxError: invalid syntax

如果系统默认为python3, 会返回上面的错误,需要切换到python2,

# eselect python list Available Python interpreters: [1] python2.7 [2] python3.2 * # eselect python set 1

你可能感兴趣的:(Gentoo)