Xsession handling

Vagrant Cascadian <[email protected]>
Newsgroups gmane.linux.terminal-server.devel
Message-ID <[email protected]>
On Wed, Sep 24, 2008 at 12:11:05PM -0400, Warren Togami wrote:
> Oliver Grawert wrote:
> > SESSIONLIST="/etc/X11/xinit/Xsession \
> > 		/etc/X11/Xsession \
> > 		/usr/lib/X11/xdm/Xsession \
> > 		/etc/X11/xdm/Xsession"
> > 
> > for SESSION in ${SESSIONLIST}; do
> > 	if [ -x ${SESSION} ]; then
> > 		export LDM_XSESSION=${SESSION}
> > 		break
> > 	fi
> > done
 
> You should recall that we can't do this because [ -x /path/to/foo ] is 
> impossible.

yes, it doesn't fix that issue at all; it behaves identically to what
we've had for a while now. so it's no worse than that.

meanwhile, it fixes the issue of calling the session directly rather
than as an argument to Xsession.

sorry if my commit message wasn't clear enough. i had the idea, tested
it out, and it worked. i didn't see it introducing any major problems,
and it seemed similar to what we had proposed, if only implementing part
of it.
 
> LDM needs to loop through the Xsession list through 
> multiple round-trips through the ssh tunnel.  

this could actually be fairly easily accomplished with:

    ssh $server find $SESSION_LIST | head -n 1

> This sucks, but at least it is only a fallback if not otherwise
> specified in lts.conf or the previously proposed ldminfod.

i think ldminfod is the way to go.

> Are we still in favor of making ldminfod tell LDM the preferred Xsession 
> path, and the slow loop as a fallback if ldminfod (older version) is not 
> supplying it?

i think so, and i think my recent patch actually gets us closer to being
able to do that, without really changing existing behavior much at all.

live well,
  vagrant

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_____________________________________________________________________
Ltsp-developer mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-developer
For additional LTSP help,   try #ltsp channel on irc.freenode.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.