思路
- 安装fcitx
- 安装fcitx-configtool
- 安装fcitx-sogoupinyin
- 在fcitx-configtool中添加
Sogou Pinyin
(应取消勾选Only Show Current Language
) - 添加环境变量
添加环境变量
可添加到~/.xinitrc
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=“@im=fcitx”
trouble shooting
GNOME环境,原先输入法可用,某次系统更新后不可用
新版的gnome改变了部分环境变量的机制,原先需要加在
~/.xinitrc
里的环境变量需要添加在/etc/environment
中