LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 801|回复: 0

用GDM启动session

[复制链接]
发表于 2005-11-13 05:12:15 | 显示全部楼层 |阅读模式
安装了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,问题就解决了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表