X11: Always honor ~/.xsession.

See http://thread.gmane.org/gmane.linux.distributions.nixos/2879 .

svn path=/nixos/trunk/; revision=17814
This commit is contained in:
Ludovic Courtès 2009-10-15 08:27:51 +00:00
parent f3472f7163
commit 6472ee4d20

View File

@ -57,9 +57,12 @@ let
source /etc/profile
# Allow the user to setup a custom session type.
if test "$sessionType" = custom; then
test -x ~/.xsession && exec ~/.xsession
sessionType="" # fall-thru if there is no ~/.xsession
if test -x ~/.xsession; then
exec ~/.xsession
else
if test "$sessionType" = "custom"; then
sessionType="" # fall-thru if there is no ~/.xsession
fi
fi
# The session type is "<desktop-manager> + <window-manager>", so