解决方案来源:https://github.com/fcitx/fcitx5/issues/384#issuecomment-1532428129

问题描述:
ubuntu安装fcitx5-pinyin后,可以在terminal等应用中使用,但是无法在edge浏览器等其他应用中激活输入法

解决方法
编辑文件~/.config/environment.d/profile.conf,添加输入法相关设置

GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
XMODIFIERS="@im=fcitx"