# Arch / Manjaro下Firefox不能呼叫Fcitx輸入法 What to do? ## 結論: ```bash $ pacman -S fcitx5-chewing fcitx5-configtool fcitx5-gtk $ echo "# Fcitx5 GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx XMODIFIERS=@im=fcitx SDL_IM_MODULE=fcitx GLFW_IM_MODULE=ibus" | sudo tee -a /etc/environment > /dev/null 2>&1 $ fcitx5-configtool # 手動加入輸入法 $ reboot now # 重開機enjoy ``` :::info * [Archlinux - Fcitx5](https://wiki.archlinux.org/title/Fcitx5) * 有需要繁體簡體轉換也可以下載fcitx5-chinese-addons, 默認:ctrl + shift + f 轉換 ::: ## 屁話: Me: 哇!我搜到好多解法呀! ㄚ乾...怎麼都不能用!!! ![](https://media.giphy.com/media/NJkIw5wfnM3e0/giphy.gif) ### Situation: By following up ArchWiki, finish installing `fcitx5-chewing fcitx5-configtool` with command `sudo pacman -S fcitx5-chewing fcitx5-configtool` and create `.xprofile` under home directory. ```bash export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS=@im=fcitx ``` And then after reboot, everything works fine expect browser(firefox, chromium) btw I only using these two. ### Issue: Ctrl + space, chewing input method is not changing. ![](https://media.giphy.com/media/b8jefh8LnBmMw/giphy.gif) ### Solution: Following the ArchWiki page, [TroubleShooting](https://wiki.archlinux.org/title/Fcitx5#Troubleshooting) session it suggests using `fcitx5-diagnose` to find out the problem. ```log ## Gtk: ... 2. gtk 3: Found immodules cache for gtk `3.24.34` at `/usr/lib/gtk-3.0/3.0.0/immodules.cache`. Version Line: # Created by /usr/bin/gtk-query-immodules-3.0 from gtk+-3.24.34 **Failed to find fcitx5 in immodule cache at `/usr/lib/gtk-3.0/3.0.0/immodules.cache`** **Cannot find fcitx5 im module for gtk 3 in cache.** ... ``` On the GTK session, gtk 3, there are two warmings crying out for gtk 3. So then I just looking for the keyword `gtk3` with `pacman -Ss fcitx | grep gtk` and follow up by installing the packet and restart fcitx5 and browser. Guess what? Ah! it works :smiley: ```bash $ pacman -Ss fcitx | grep gtk community/fcitx5-gtk 5.0.16-1 (fcitx5-im) Fcitx5 gtk im module and glib based dbus client library pkill fcitx5 fcitx5 & ``` --- Nothing left at the end but an happy ending! Bye guys ![](https://media1.giphy.com/media/5OqXb948EBkyUcnwHt/giphy.gif?cid=ecf05e47510e431f69a73111eb621d082f8d287cbef4372e&rid=giphy.gif&ct=g) ![](https://i.imgur.com/ZaBJJvz.gif)