ubuntu2204安装搜狗拼音输入法
- 安装必要的软件包
sudo apt update
sudo apt install fcitx5 fcitx5-chinese-addons fcitx5-config-qt fcitx5-configtool -y - 安装搜狗拼音
下载最新 .deb 包(官方地址:https://pinyin.sogou.com/linux/),安装:
sudo dpkg -i sogoupinyin_*.deb
sudo apt -f install -y # 修复依赖
3. 设置输入法框架为 fcitx5
im-config -n fcitx5
4. 配置环境变量
编辑 ~/.xprofile(没有就新建):
nano ~/.xprofile
写入:
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"
fcitx5 &
保存后重启可以试试。再不行就设置开机自启
mkdir -p ~/.config/autostart
cp /usr/share/applications/fcitx5.desktop ~/.config/autostart/