ubuntu22.04桌面版安裝linux搜狗輸入法

二乘八是十六發表於2024-08-06

本文參考搜狗輸入法官方教程,並針對ubuntu22.04做了一些調整
https://pinyin.sogou.com/linux/help.php

1.安裝fcitx

# 檢視fcitx版本 
apt info fcitx | grep Version
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Version: 1:4.2.9.8-5
# 安裝fcitx
sudo apt install -y fcitx

2.設定系統預設鍵盤為fcitx

- 開啟 系統設定——區域和語言——管理已安裝的語言——在“語言”tab下——點選“新增或刪除語言”
- 彈出“已安裝語言”視窗,勾選中文(簡體),點選應用
- 回到“語言支援”視窗,在鍵盤輸入法系統中,選擇“fcitx”

3.安裝輸入法依賴

sudo apt install -y libqt5qml5 libqt5quick5 libqt5quickwidgets5 qml-module-qtquick2
sudo apt install -y libgsettings-qt1

4.安裝搜狗輸入法

wget https://ime-sec.gtimg.com/202408061101/750651a57f1e37c464f0d3796cce6e1a/pc/dl/gzindex/1680521603/sogoupinyin_4.2.1.145_amd64.deb
sudo apt install ./sogoupinyin_4.2.1.145_amd64.deb

5.關閉Wayland

在ubuntu22.04中,必須關閉WaylandEnable,否則會出現衝突

# 在/etc/gdm3/custom.conf檔案內,取消註釋WaylandEnable
cat /etc/gdm3/custom.conf  | grep WaylandEnable
WaylandEnable=false

相關文章