Install Arch official instructions to install Fcitx. After you set export GTK_IM_MODULE = fcitx in. xprofile, you cannot enter Chinese Characters in firefox.
After changing the fcitx in the three sentences such as export GTK_IM_MODULE = fcitx to xim, you can enter Chinese characters, but the input box cannot follow the cursor.
Forgot where to see said setting/usr/lib/gtk-2.0/2.10.0/gtk. immodules, and then carefully read this file, found that there is "/usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so", but there is no im-fcitx, then see/usr/lib/gtk-2.0/2.10.0/immodules/has a im-xim.so, but there is no im-fcitx.so, so I guess the problem is here.
So I searched the gtk2.0 im-fcitx.so and found the following two resources:
32-bit: http://rpm.pbone.net/index.php3/stat/4/idpl/26212985/dir/opensuse/com/fcitx-gtk2-32bit-4.2.8.3-9.1.x86_64.rpm.html
64-bit: http://rpm.pbone.net/index.php3/stat/4/idpl/26001012/dir/opensuse/com/fcitx-gtk2-4.2.8.3-5.2.x86_64.rpm.html
Download the rpm package and run the "rpmextract. sh filename "unzip, copy the obtained im-fcitx.so to/usr/lib/gtk-2.0/2.10.0/immodules/, then modify/usr/lib/gtk-2.0/2.10.0/gtk. immodules: Follow the im-xim lines to add the following two lines:
"/Usr/lib/gtk-2.0/2.10.0/immodules/im-fcitx.so"
"Fcitx" "X Input Method" "gtk20" "/usr/share/locale" "en: ko: ja: th: zh"
Log on again.
It seems that the downloaded rpm is packaged from Ubuntu, because after the above method is successful, Fcitx has several more Ubuntu input methods.