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 設定的快速鍵無效。