分页: 1 / 1

求助,装了LAMP 环境后ibus输入法的输入面板在重启之后不见了

发表于 : 2010-11-12 7:06
kinglee0531
如题,本来,我的输入法的面板也是看不见的,在参考了本模块的经典帖子后ibus能够看见了,可是在我装了lamp环境之后就不见了,具体的情况是这样的,重启之后出现这个提示 :
kdesudo 不能使用 了
然后我又按照论坛上的方法作了一遍,结果出现了这样的提示
restart the X session to activate the input method.
怎么重启x session?输入面板不见了 。。很是烦人阿
who can help me ?
Thx!

Re: 求助,装了LAMP 环境后ibus输入法的输入面板在重启之后不见了

发表于 : 2010-11-12 12:46
kinglee0531
:em06 谁还有过这种情况?帖子不要沉了。

Re: 求助,装了LAMP 环境后ibus输入法的输入面板在重启之后不见了

发表于 : 2010-11-12 13:21
kinglee0531
the pics below shows the information of problems

图片

how to restart the x session ?

代码: 全选

cat ~/.xsession-errors
图片


Any suggestions on how to fix these problems, resources, web sites, tools, etc., would be appreciated.

Thank you.
:em01

Re: 求助,装了LAMP 环境后ibus输入法的输入面板在重启之后不见了

发表于 : 2010-11-13 9:42
qiii2006
卸载ibus

代码: 全选

sudo apt-get remove ibus
安装fcitx

代码: 全选

sudo add-apt-repository ppa:wengxt/fcitx-nightly
sudo apt-get update
sudo apt-get install fcitx
使用fcitx

代码: 全选

im-switch -s fcitx -z default  

Re: 求助,装了LAMP 环境后ibus输入法的输入面板在重启之后不见了

发表于 : 2010-11-14 13:09
nick198119
从~/.xsession-errors来看,系统在启动fcitx而不是ibus啊。并且由于你没有安装fcitx,所以启动失败。
不知道你用的是什么系统,在我的kubuntu10.10中是没有/etc/X11/Xsession.d/95xinput这个文件的。
你检查一下/etc/X11/xinit/xinput.d/zh-CN,这应该是链接文件,检查一下内容,是否是ibus配置内容,如果不是,说明系统默认输入法被更改了,在KDE系统设置/语系部分重新设置为ibus即可。

Re: 求助,装了LAMP 环境后ibus输入法的输入面板在重启之后不见了

发表于 : 2010-11-17 17:11
kinglee0531
nick198119 写了:从~/.xsession-errors来看,系统在启动fcitx而不是ibus啊。并且由于你没有安装fcitx,所以启动失败。
不知道你用的是什么系统,在我的kubuntu10.10中是没有/etc/X11/Xsession.d/95xinput这个文件的。
你检查一下/etc/X11/xinit/xinput.d/zh-CN,这应该是链接文件,检查一下内容,是否是ibus配置内容,如果不是,说明系统默认输入法被更改了,在KDE系统设置/语系部分重新设置为ibus即可。
My OS environment: Kubuntu 10.10
At first , my ibus input method can not work, er, here the "work" i mean is that it did not show the panel on the system tray,and there was not the panel when i type the Chinese , difficult to select the word.
Later on I saw your tips ,and follow your method .It worked!!
But unluckily,after I installed the LAMP , it occured on me again.

this is my file on IM /etc/X11/xinit/xinput.d/zh-CN

代码: 全选

XIM=ibus
XIM_PROGRAM=/usr/bin/ibus-daemon
XIM_ARGS=" --panel=/usr/lib/ibus/ibus-ui-kde"
if [ -e /usr/lib/gtk-2.0/*/immodules/im-ibus.so ]; then
    GTK_IM_MODULE=ibus
else
    GTK_IM_MODULE=xim
fi

if [ -e /usr/lib/qt4/plugins/inputmethods/libqtim-ibus.so ]; then
	QT_IM_MODULE=ibus
else
	QT_IM_MODULE=xim
fi
DEPENDS="ibus, ibus-gtk, ibus-qt4, plasma-widget-kimpanel-backend-ibus"
# vim:ft=sh:
and this is /etc/X11/Xsession.d/95xinput

代码: 全选

export XMODIFIERS=@im=fcitx ; export GTK_IM_MODULE=fcitx ; fcitx 
I have installed fcitx before and it met the same question,so i removed it , it may be a file left on my pc.

Re: 求助,装了LAMP 环境后ibus输入法的输入面板在重启之后不见了

发表于 : 2010-11-17 22:22
nick198119
看出两个问题:
1. /etc/X11/xinit/xinput.d/zh-CN 文件中 XIM_ARGS=" --panel=/usr/lib/ibus/ibus-ui-kde" 这个参数使用的正是罪大恶极的 输入法部件Kimpanel(/usr/lib/ibus/ibus-ui-kde正是plasma-widget-kimpanel-backend-ibus软件包的一个文件),你可能还装着kimpanel(输入法部件),并且没有在面板中添加它,或者
,已经卸载了它,但是仍然使用它的配置文件。在语系设置,输入法设置中,确保输入法不是设置的”ibus-kde"而是"ibus",如果设置为“ibus”, /etc/X11/xinit/xinput.d/zh-CN 应该直接或间接(先指向/etc/alternatives/xinput-zh_CN)指向该目录下的名为ibus的文件,而不是ibus-kde(该文件的内容与你现在配置文件的一模一样XIM_ARGS=" --panel=/usr/lib/ibus/ibus-ui-kde")!如果更改配置之后,该文件仍是这样,可以删除zh-CN,在该目录中手动创建一个指向文件ibus的链接(如果你的/etc/X11/xinit/xinput.d/ibus文件没有被你手动修改的话,文件与ibus-kde的两处不同:

代码: 全选

XIM_ARGS="--xim"

DEPENDS="ibus, ibus-gtk|ibus-qt4"
2.~/.xsession-errors 中出现fcitx启动失败的信息,为避免残存的配置文件影响ibus,在新立德左下角:点状态项,看到左栏有“未安装的(残存配置),点击,将过滤出已经卸载但留有残存配置的软件,全部标记,彻底删除。
如果,还存在/etc/X11/Xsession.d/95xinput,移除它。重启系统,然后打开终端输入env检查变量是否月/etc/X11/xinit/xinput.d/zh-CN中变量相符。