文章

Manjaro 安装搜狗输入法

不推荐使用搜狗输入法(fcitx),因为fcitx可能会在Qt和部分程序中无法使用,并且有一堆的小问题,现在推荐使用fcitx5,Fcitx5安装教程

如果你刚安装 Manjaro 还没有进行任何配置,建议先配置一下 然后再安装输入法。

1.安装 fcitx

yay -S fcitx fcitx-configtool

2.安装搜狗输入法

yay -S fcitx-sogoupinyin

3.设置 fcitx 开机自启

创建 ~/.xprofile 文件写入

fcitx &
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"

4.修改环境变量

创建 ~/.pam_environment 文件写入

GTK_IM_MODULE DEFAULT=fcitx
QT_IM_MODULE DEFAULT=fcitx
XMODIFIERS DEFAULT=@im=fcitx

5.注销或重启即可

License:  CC BY 4.0