解決Arch Linux下Firefox不能調用FcitxIME

來源:互聯網
上載者:User

安裝Arch官方說明安裝Fcitx,在.xprofile中設定export GTK_IM_MODULE=fcitx等三句後,在firefox下不能輸入中文。

將export GTK_IM_MODULE=fcitx等三句中的fcitx改為xim後可以輸入中文,但輸入框不能跟隨游標。

忘了在哪裡看到說設定/usr/lib/gtk-2.0/2.10.0/gtk.immodules,然後仔細看了下這個檔案,發現裡面有"/usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so" ,卻沒有im-fcitx,然後看到/usr/lib/gtk-2.0/2.10.0/immodules/中有im-xim.so,卻沒有im-fcitx.so,於是猜想問題就出在這裡。

於是搜了一下gtk2.0 im-fcitx.so,找到了下面兩個資源:

32位: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位: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

下載rpm包,使用命令 "rpmextract.sh filename"解壓,將得到的im-fcitx.so拷貝至/usr/lib/gtk-2.0/2.10.0/immodules/,然後修改/usr/lib/gtk-2.0/2.10.0/gtk.immodules,按照im-xim那兩行照貓畫虎,添加如下兩行:

"/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"

重新登入,成功了。

似乎所下載的rpm封裝自Ubuntu,因為按上述方法成功後Fcitx多了幾個Ubuntu的IME皮膚。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.