FCITX:gentoo 或者CENTOS

1.安装,比较简单。GENTOO: EMERGE FCITX;CENTOS: YUM INSTALL FCITX

2.配置,$ vi ~/.xprofile

  export GTK_IM_MODULE=fcitx

  export QT_IM_MODULE=fcitx

  export XMODIFIERS="@im=fcitx"

:wq

这样的话,EMACS还是不能够调用 FCITX

3. nano /etc/env.d/02locale

  LANG="en_US.utf8"

LC_COLLATE="zh_CN.utf8"

4.参考:https://wiki.archlinux.org/index.php/Fcitx,这里面的fcitx-diagnose(普通用户下运行)非常好用。

             https://fcitx-im.org/wiki/Fcitx/zh-hans 

-------------------20190325

Note for GNOME Later than 3.6

1. libibus maybe compiled as a dependency of gnome, don't try to remove it. If you're using gentoo, try below steps to remove ibus:

  • add -i18n use flag to your make.conf, and run:
emerge --update --newuse --deep @world --ask
  • rebuild gnome-shell with -nls use flag
  • remove app-i18n/ibus:
emerge -cav app-i18n/ibus

2. uninstall package that contains ibus-daemon on your system.

Or if you want to keep ibus installed (if you want to use fcitx you don't need ibus at all, for older gnome 3.6 you might also hit this bug, so you'd better remove it), run:

gsettings set org.gnome.settings-daemon.plugins.keyboard active false 

as your current user.

Or,

3. If you are using fedora, make sure to use imsettings to select "Fcitx".

4. If set GTK_IM_MODULE doesn't work, try run following command.

gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/IMModule':<'fcitx'>}"

Re-login.-------------

posted @ 2017-04-29 21:03  RenBwo  阅读(366)  评论(0编辑  收藏  举报