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

Re: Re: xset command setting not sticking



Clive Standbridge wrote:
> > #~/bin/bash
> 
> Unnecessary.

That depends.  In many cases it is necessary.  (But note that it is
"#!" not "#~".  Plus #!/bin/bash --login is my recommendation.)

> > exec gnome-session
> 
> That should be the only active line in .xsession
> 
> > 3. chmod +x .xsession
> 
> Unnecessary, because .xsession and .xsessionrc are sourced, not
> executed.

If the file is executable then it is executed.  If executed then the
'#!' line will have effect.  If not executable then the '#!' won't
have any effect.  If it isn't executable then it is run with the
standard shell (which effectively is /bin/sh).  Therefore depending
upon what effect you are trying to achive you will either want it to
be executable or not.  For me in almost all cases I will always want
to make it executable.

See /etc/X11/Xsession.d/50x11-common_determine-startup for the code
implementing the behavior.

You can look at this old bug for more information and pointers to
previous discussions on this topic.

  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=250765

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: