In Arch Linux, Firefox cannot call the Fcitx input method.

Source: Internet
Author: User
Tags arch linux

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.