|
|
发表于 2005-5-18 18:00:33
|
显示全部楼层
先看man startx中的一段:
Note that in the Debian system, what many people traditionally put in the .xinitrc file should go in .xsession instead; this permits the same X environment to be presented whether startx, xdm, or xinit is used to start the X session. All discussion of the .xinitrcfile in the xinit manual page applies equally well to .xsession. Keep in mind that .xinitrc is used only by xinit and completely ignored by xdm.
很显然,.xsession在debian中已经取代了.xinitrc,可以为startx、xdm以及xinit启动的X提供统一的环境。.xinitrc才会被xdm忽略。
再来看man xdm,其中有一段:
After the user logs in, xdm runs the Xstartup script as root.
Then xdm runs the Xsession script as the user. This system session file may do some additional startup and typically runs the .xsession script in the user's home directory. When the Xsession script exits, the session is over.
很明显,xdm是会读取用户目录的.xsession的。
所以,
Post by jhuangjiahua
ainxtein:
所以不建议用 .xsession
是不对的,.xsession可以为startx、xdm以及xinit启动的X提供统一的环境,一举多得,为什么不用?比单独设置xdm或gdm好多了。
至于
Post by jhuangjiahua
ainxtein:
你自己想, 如果会话类型都选了 Gnome , 但是她还去读 .xsession 的话,由于 你的 .xsession 里写了 XFCE 的启动 , 那 还会开 Gnome 么 ???
我自己是只使用一种桌面环境的,如果想同时使用多种桌面环境,只需要把.xsession中的
去掉就可以了嘛 |
|