On 3/16/2015 4:34 PM, Vagrant Cascadian wrote:
> On 2015-03-16, John Hupp wrote:
>> I want to write a script that, for my thin clients, will run a different
>> screen locker if the script detects that it is in an LTSP session.
>>
>> The biggest problem I'm running into is testing for LTSP.
> Check for the LTSP_CLIENT environment variable; it should be set to True
> when running in an LTSP environment.
>
>
>> I thought one simple test would be to return the hostname and match it
>> against ltsp*.  But "ltsp-localapps hostname" has no output.  I'm
>> running ltsp-pnp and /bin/hostname is certainly in the image.  And
>> localapps is enabled (I'm using that for another purpose already).  In
>> fact, I can run "ltsp-localapps xterm" and then run hostname from
>> there and get output (clearly not useful for a script).
>>
>> What am I missing?  Does ltsp-localapps not work with apps from /bin?
>> If that is the case, can someone think of another solution for my purpose?
> That's because ltsp-localapps (on the server) essentially sets an X
> property (a.k.a. xatom) that ltsp-localappsd (on the client) reads from
> the running X server (on the client) and executes executes the
> application specified in the X properties (on the client, displaying to
> the client's X server). There's no way to read input or output from
> ltsp-localapps.
>
>
> live well,
>    vagrant

Thanks, Vagrant, on both counts.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to