fcitx5 设置自启动

mkdir -p ~/.config/autostart
nano ~/.config/autostart/fcitx5.desktop

粘贴以下内容:
[Desktop Entry]
Type=Application
Exec=fcitx5 -d
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Fcitx5
Comment=Start Fcitx5 Input Method

1. 手动启动 fcitx5(测试用)

fcitx5 -d

一键安装脚本

sudo dpkg --remove sogoupinyin 2>/dev/null
sudo apt --fix-broken install -y
sudo apt purge -y ibus fcitx* fcitx5-chinese-addons
sudo apt autoremove -y
sudo apt update
sudo apt install -y fcitx5 fcitx5-configtool fcitx5-rime git
echo 'export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS="@im=fcitx"' >> ~/.profile
source ~/.profile
im-config -n fcitx5
fcitx5-remote -r

发表评论