Fcitx报错:Start XIM error. Another XIM daemon named ibus is running?

Scroll Down

Fcitx报错:Start XIM error. Another XIM daemon named ibus is running?

给Ubuntu20.04安装搜狗输入法过程中,fcitx启动报错:

(ERROR-4545 xim.c:239) Start XIM error. Another XIM daemon named ibus is running?
(ERROR-4545 instance.c:443) Exiting.

解决办法:

在终端输入:

echo -e "export XMODIFIERS=@im=fcitx\nexport GTK_IM_MODULE=\"xim\"\nexport QT_IM_MODULE=\"xim\"\nfcitx&">>~/.profile

或者打开 ~/.profile,在最后添加如下内容:

export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE="xim"
export QT_IM_MODULE="xim"
fcitx&

两种方法效果是一样的,推荐第一种方法。