[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Suggestion for Xsession



Hi

I propose a small change to /etc/X11/Xsession to allow users having
.xsession files that aren't executable. This isn't a big deal, just
a small convenience that probably would save some seconds for
many people. I suggest to change:

if [ -x $startup ] && grep -q ^allow-user-xsession /etc/X11/config
then
  exec $startup
fi

to:

if [ -f $startup ] && grep -q ^allow-user-xsession /etc/X11/config
then
	if [ -x $startup ]
	then
		exec $startup
	else
		exec /bin/sh $startup
	fi
fi

Would there be any problem with this?

-- 
.elOle.


Reply to: