您尚未登录。

#1 2013-12-30 01:29:18

荒野无灯
荒野无灯
注册时间: 2012-12-02
帖子: 36
个人网站

.profile 中加入了fcitx启动命令导致每次打开xfce4-terminal后fcitx报错

在此分享下,希望对遇到同样问题的人有帮助。

每次打开一个xfce4-terminal 就会打印如下错误:

(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-xim.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-ipc.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-qw.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-pinyin.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-notificationitem.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-vk.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-freedesktop-notify.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-light-ui.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-remote-module.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-classic-ui.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-punc.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-chttrans.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-imselector.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-x11.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-pinyin-enhance.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-unicode.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-table.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-quickphrase.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-xkbdbus.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-kimpanel-ui.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-spell.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-xkb.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-clipboard.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-fullwidth-char.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-keyboard.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-dbus.conf
(INFO-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/addon.c:151) Load Addon Config File:fcitx-autoeng.conf
(WARN-21744 /build/fcitx/src/fcitx-4.2.8.3/src/module/dbus/dbusstuff.c:246) DBus Service Already Exists
(ERROR-21744 /build/fcitx/src/fcitx-4.2.8.3/src/lib/fcitx/instance.c:427) Exiting.

然后怀疑是由ibus引起的,

┌─[sh4d0walker@HuangYe] - [~] - [Mon Dec 30, 12:40]
└─[$] <> sudo pacman -R --nodeps ibus   
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: gnome-settings-daemon: requires ibus

这样还不让删除。。

┌─[sh4d0walker@HuangYe] - [~] - [Mon Dec 30, 12:40]
└─[$] <> sudo pacman -R -dd ibus 

Packages (1): ibus-1.5.4-1

Total Removed Size:   9.23 MiB

:: Do you want to remove these packages? [Y/n] y
(1/1) removing ibus                                [######################] 100%
┌─[sh4d0walker@HuangYe] - [~] - [Mon Dec 30, 12:42]

卸载了ibus,还是不行。

网上有人遇到的问题是fcitx弹不出来,
我这里的情况不是弹不出来,而是fcitx可正常使用,但每次打开terminal会打印错误信息。。。很烦人。

继续,把fcitx也给强制卸载了,

┌─[sh4d0walker@HuangYe] - [~] - [Mon Dec 30, 12:59]
└─[$] <> sudo pacman -R -dd fcitx

再打开terminal看

/home/sh4d0walker/.profile:1: command not found: fcitx
┌─[sh4d0walker@HuangYe] - [~] - [Mon Dec 30, 01:00]
└─[$] <> 

泥马,原来在 .profile 中 。。。。

┌─[sh4d0walker@HuangYe] - [~] - [Mon Dec 30, 01:02]
└─[$] <> cat .profile 
exec fcitx -d

果断移除。

此前我检查了.xprofile  , .zshrc , .xinitrc , 都没有发现fcitx 启动相关的命令。
却把 .profile 给漏了。

原则上.profile 应该是用来设置环境变量的,这个fcitx的启动命令不晓得是我什么时候加的,
估计存在硬盘里有相当长的一段时间了。

sudo pacman -S fcitx 重新装回fcitx完事。

最近编辑记录 荒野无灯 (2013-12-30 01:50:27)

离线

#2 2013-12-30 12:15:47

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: .profile 中加入了fcitx启动命令导致每次打开xfce4-terminal后fcitx报错

原则上,zsh 启动时是不执行 ~/.profile 的啊。

离线

#3 2013-12-31 23:07:07

荒野无灯
荒野无灯
注册时间: 2012-12-02
帖子: 36
个人网站

Re: .profile 中加入了fcitx启动命令导致每次打开xfce4-terminal后fcitx报错

百合仙子 说:

原则上,zsh 启动时是不执行 ~/.profile 的啊。

我也郁闷了。。。
zsh 作为 我的interactive shell ,居然执行了 ~/.profile ......

离线

#4 2013-12-31 23:14:28

荒野无灯
荒野无灯
注册时间: 2012-12-02
帖子: 36
个人网站

Re: .profile 中加入了fcitx启动命令导致每次打开xfce4-terminal后fcitx报错

百合仙子 说:

原则上,zsh 启动时是不执行 ~/.profile 的啊。

原因已经查明,是 oh-my-zsh 导致 ~/.profile 被执行!!!

┌─[sh4d0walker@HuangYe] - [~/.oh-my-zsh] - [Tue Dec 31, 11:08]
└─[$] <git:(master)> head oh-my-zsh.sh 
# Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
  /usr/bin/env ZSH=$ZSH DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh $ZSH/tools/check_for_upgrade.sh
fi

在 tools/check_for_upgrade.sh 第23行:

┌─[sh4d0walker@HuangYe] - [~/.oh-my-zsh] - [Tue Dec 31, 11:08]
└─[$] <git:(master)> cat  tools/check_for_upgrade.sh | ag .profile
[ -f ~/.profile ] && source ~/.profile

最近编辑记录 荒野无灯 (2013-12-31 23:26:44)

离线

页脚