MX Linux 安装搜狗输入法 (xfce桌面)

warning: 这篇文章距离上次修改已过1457天,其中的内容可能已经有所变动。

在 MX Linux (xfce桌面)下安装搜狗输入法踩坑记录~

MX Linux + 搜狗拼音输入法MX Linux + 搜狗拼音输入法


安装搜狗输入法

info:建议先换个国内源:传送门

安装Fcitx

# 首先安个全家桶
sudo apt install fcitx fcitx-tools fcitx-config* fcitx-frontend* fcitx-module* fcitx-ui-*

# 非KDE桌面,如果无法显示候选框,请卸载 fcitx-module-kimpanel
sudo apt remove fcitx-module-kimpanel

添加环境配置

编辑/etc/environment文件并添加下面的内容:

export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
warning:网上也有教程说配置 .bashrch.xprofile.xinitrc文件,但我试了试没啥反应。如果你也一样,请多尝试几个配置文件。

添加 Fcitx 自启动

一般从源安装会配置好自启动的,无需配置这个的。

打开设置,选择 会话和启动打开设置,选择 会话和启动

添加一个启动项,命令填写 'fcitx',其他随意添加一个启动项,命令填写 'fcitx',其他随意

卸载与搜狗拼音冲突的软件包

sudo apt remove fcitx-module-punc-ng fcitx-module-fullwidthchar-enhance fcitx-module-autoeng-ng

安装 搜狗输入法

从官网下载安装包

# 安装搜狗输入法
sudo dpkg -i sogoupinyin_2.3.1.0112_amd64.deb

# 修正依赖问题
sudo apt install -f

安装输入法安装输入法

修正依赖问题修正依赖问题

再次安装再次安装

解决搜狗输入法不显示候选问题

在终端运行sogou-qimpanel,提示:

sogou-qimpanel: error while loading shared libraries: libQtDeclarative.so.4: cannot open shared object file: No such file or directory

提示缺少 libQtDeclarative.so.4提示缺少 libQtDeclarative.so.4

安装libqt4-declarative

sudo apt install libqt4-declarative

安装 libqt4-declarative安装 libqt4-declarative

重启fcitx

重启fcitx重启fcitx

warning:如果仍无法显示候选,请尝试删除~/.config目录下的SogouPYSogouPY.userssogou-qimpanel目录。然后再次重启fcitx。

一切就绪

搜狗拼音输入法正常使用搜狗拼音输入法正常使用

评论已关闭