解决Debian中ibus输入法不能自动启动的问题

来源:互联网 发布:双十一淘宝卖家秀 编辑:程序博客网 时间:2024/06/09 20:42

在debian sid中安装了ibus之后,用im-switch -s ibus -z default设定输入法之后,login时无法自动启动ibus。

无论是在.bashrc或者.profile中增加ibus-daemon都自动启动不了。

 

查看/etc/X11/xinit/xinput.d/目录下的文件发现,default文件没有设定任何内容:

XIM=
XIM_PROGRAM=
XIM_ARGS=
XIM_PROGRAM_XTRA=
# Set following variable to non-zero string if program set itself as deamon
XIM_PROGRAM_SETS_ITSELF_AS_DAEMON=
#
# Define GTK and QT IM module
#   They may or may not be using xim as the IM.
#
GTK_IM_MODULE=
QT_IM_MODULE=

#
# Define lists of packages neded for above IM to function
#
DEPENDS=

 

于是把default文件备份,把ibus改名default,然后执行:

 

sudo im-switch -c

 

选择default选项,重启电脑,然后就看到任务栏上出现了ibus。

 

 

 

原创粉丝点击