快轉到主要內容

Ubuntu 安裝 Fcitx5 注音輸入,並解決無法在瀏覽器切換輸入法的問題

·436 字· loading · loading ·
Computer-Science Ubuntu Fcitx
目錄
Ubuntu 安裝 Fcitx5 遇到困難,甚至無法於瀏覽器切換輸入法嗎?

安裝 Fcitx5 及相關套件
#

1# 首先移除舊版本
2sudo apt purge fcitx*
1# 安裝 Fcitx5
2sudo apt install -y fcitx5 fcitx5-chewing fcitx5-config-qt fcitx5-frontend-gtk4

解決 GTK 環境無法切換輸入法的問題
#

通常瀏覽器無法切換輸入法就是缺少這個步驟,
首先編輯/etc/environment

1sudo vim /etc/environment

添加以下內容並儲存:

1GTK_IM_MODULE=fcitx5
2QT_IM_MODULE=fcitx5
3XMODIFIERS=@im=fcitx5

設為預設輸入法
#

輸入指令設定預設輸入法為 fcitx5:

1im-config -n fcitx5

添加 Chewing 注音輸入法
#

1fcitx5-configtool

添加 Chewing 輸入法後重新登入,此時應該就大功告成。


無法自動啟動 Fcitx5?
#

若無法在登入後自動啟動 fcitx5,可以在autostart下新增捷徑:

1ln -s /usr/share/applications/org.fcitx.Fcitx5.desktop /etc/xdg/autostart

如果該檔案不存在,則可以自行創建:

1[Desktop Entry]
2Type=Application
3Exec=fcitx5
4Hidden=false
5NoDisplay=false
6X-GNOME-Autostart-enabled=true
7Name=Fcitx5
8Comment=Input Method Framework

記得修改完後重新登入測試看看!


References
#

Alpaca
作者
Alpaca
No one can stop my feet.

相關文章

解決 Ubuntu 進入「Emergency Mode」的問題
·607 字· loading · loading
Computer-Science Ubuntu
這通常是因為磁區掛載時遇到嚴重錯誤導致的。
How to run "sudo" command without typing password?
·289 字· loading · loading
Computer-Science Ubuntu
Make your username able to run "sudo" without password.
Change username and home folder in ubuntu
·189 字· loading · loading
Computer-Science Ubuntu
Ubuntu Server Auto Login TTY when Start up
·443 字· loading · loading
Computer-Science Ubuntu
Ubuntu "Crontab" 工作排程
·1115 字· loading · loading
Computer-Science Ubuntu
How to set timezone on ubuntu?
·183 字· loading · loading
Computer-Science Ubuntu