|
|
安装了GDM后,启动session没有输入法,搜索了论坛按照帖子所讲没有解决,后来看了下/etc/X11/gdm/Xsession脚本,里面有这么一段:
if [ "x$command" = "xcustom" ] ; then
if [ -x "$HOME/.xsession" ]; then
command="$HOME/.xsession"
else
echo "$0: Cannot find ~/.xsession will try the default session"
command="default"
fi
fi
if [ "x$command" = "xdefault" ] ; then
if [ -x "$HOME/.Xclients" ]; then
command="$HOME/.Xclients"
elif [ -x /etc/X11/xinit/Xclients ]; then
command="/etc/X11/xinit/Xclients"
elif [ -x /etc/X11/Xclients ]; then
command="/etc/X11/Xclients"
else
echo "$0: Cannot find Xclients"
# FIXME: kind of an evil failsafe
command="xsm"
fi
fi
我就把$HOME目录下的.xinitrc复制为.xsession和.Xclients,加上执行权限,在GDM中选择default session,问题就解决了。 |
|