REALLY? Nobody knows?? was Re: Is there an equivelent to Xsession.d for logout?

john lists.john at
Thu Jan 22 17:12:03 UTC 2009

Hi all,

Surely somebody on the dev list must have an answer or at least a
pointer. How does X do cleanup when the user logs off? Could a script
be called from there? Or from the ssh process the user logs in under?
I really want to figure this out, I hope somebody can help.



On Wed, Jan 21, 2009 at 1:57 PM, john <lists.john at> wrote:
> Thanks for the idea Joshua, that didn't work for me. Did you have to
> rebuild your image first?
> Can any developer shed some light on this? I have seen this feature
> requested many times. If there is a way to do this I'd really
> appreciate somebody piping up. If there isn't a way to do this I'd
> like to make it a feature request!
> Thanks!
> John
> On Sat, Jan 17, 2009 at 4:05 PM, Joshua Higgins
> <joshiggins at> wrote:
>> This might not be what your looking for, but whilst trying to get LDM to run
>> a command before shutdown, I got it to run a command after each log off.
>> Add your script in /opt/ltsp/i386/usr/share/ldm/rc.d/ and name it K##-script
>> and it will run when the user logs off. This seems a little flakey on my
>> system though, and I don't know which user the script is run as /
>> environment variables that are set.
>> It seems that this is not documented anywhere?
>> 2009/1/17 john <lists.john at>
>>> Hi all,
>>> I use some scripts called from /etc/X11/Xsession.d to handle chores
>>> when users log in. I'd like to be able to do some clean up when they
>>> log off. Is there a place I can
>>> call a log off script from that will run for all of my LTSP clients?
>>> Thanks!
>>> John
>>> --
>>> edubuntu-devel mailing list
>>> edubuntu-devel at
>>> Modify settings or unsubscribe at:
>> --
>> joshua higgins

More information about the edubuntu-devel mailing list