いやこっちが正しい
Edit /etc/environment and add the following lines:

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