GNOME 3.x下安裝配置小企鵝IME架構及SunPinYin外掛程式,gnomesunpinyin

來源:互聯網
上載者:User

GNOME 3.x下安裝配置小企鵝IME架構及SunPinYin外掛程式,gnomesunpinyin
fcitx 小企鵝IME架構已經越來越成熟,並且具備極高的效能,配合 Sun PinYin 智能IME就和 Windows 下的搜狗百度等IME幾乎無二了。事實上,現在Linux版本的搜狗IME正是基於fcitx小企鵝IME紙做的!用下面的命令來卸載 ibus 並安裝 fcitx IME架構及 Sun PinYin 智能IME: sudo yum remove ibus*sudo yum install fcitx-gtk* fcitx-configtool fcitx-pinyin fcitx-sunpinyin sunpinyin* im-chooser 執行完後,就該使用 im-chooser 選擇IME為 fcitx 了。如果你用 im-chooser 選擇 fcitx 後報錯顯示: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark. imsettings 2derror_2dquark.Code5: Current desktop isn’t targeted by IMSettings. 查看日誌,關鍵一句為: INFO: Attempting to switch IM to FCITX [lang=en_US.utf8, update=true] org.gnome.settings-daemon.plugins.keyboard.active is true. imsettings is going to be disabled. 這是因為 GNOME Shell 中的內建外掛程式 keyboard 被啟用,並接管了鍵盤配置及特殊快速鍵的管理,這個和 im-chooser 是衝突的,所以必須禁用它。這就需要對 gsetting 設定,使用下面的命令即可: gsettings set org.gnome.settings-daemon.plugins.keyboard active false 現在再去設定 im-chooser 中選擇 fcitx,然後最好在 /etc/profile.d 中增加一個配製指令碼命名為 fcitx.sh 內容如下: #!/bin/bash export GTK_IM_MODULE=fcitxexport QT_IM_MODULE=fcitxexport XMODIFIERS="@im=fcitx" 儲存上述修改。凡是儲存在 /etc/profile.d 目錄中的指令碼都會在系統啟動時被 profile 執行。當然,更穩妥的是,在目前使用者的 .bash_profile 中也加入上述三個環境變數的聲明。重啟後就可以使用 fcitx 了。對於 fcitx 快速鍵的配製,除了要在 fcitx-configtool 中明確配製 Ctrl-Space 或者 Super-Space(這兩個快速鍵可同時都有效)以外,還要注意 GNOME 的系統設定中的“鍵盤”->“快速鍵”->“打字”部分的“切換下一個IME”的快速鍵設定,建議將其改為“空”,否則會導致 fcitx 設定的快速鍵無效。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.