environment:
Operating System: Pop!_OS 22.04 LTS
Kernel: Linux 6.2.6-76060206-generic
Architecture: x86-64
Install the required packages:
sudo apt update -y
sudo apt install fcitx fcitx-mozc fcitx-config-gtk kde-config-fcitx fcitx-frontend-qt5 libfcitx-qt5-1
echo 'export GTK_IM_MODULE=fcitx' >> ~/.profile
echo 'export QT_IM_MODULE=fcitx' >> ~/.profile
echo 'export XMODIFIERS="@im=fcitx"' >> ~/.profile
sudo reboot
solve chrome issue:
cp /usr/share/applications/google-chrome.desktop ~/.local/share/applications/
echo 'Exec=env QT_IM_MODULE=fcitx XMODIFIERS="@im=fcitx" /usr/bin/google-chrome-stable %U' >> ~/.local/share/applications/google-chrome.desktop
sudo reboot
for Chinese input, then install this:
sudo apt install fcitx-sunpinyin