-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Johnston wrote: > IIRC, those scripts are run as root, not at the user. This shouldn't be > a problem for Peter.
That is correct. Xstartup and Xreset scripts are run as root. However, you do have access to the username that is logging in (or out) via $USER. > I'd like to run a post-session script as the user. I've noticed that > Evolution will occasionally not exit; they have conveniently provided > "killev" to kill any leftover Evolution components. However, you must > run it as the user. I would rather not have to do kill `ps -aef|grep > $USER | tinker` > > Any thoughts? One of the thoughts that struck me is to run a wrapper script that calls Xsession. This way, when Xsession 'exec's the window manager, you still have control of the user's session from the wrapper script. So the wrapper script will wait until Xsession has completed executing and control will be returned after the window manager is terminated. This way, you can then run any set of commands including calling a termination script if you desire. I did something similar to this in order to wrap the user's session entirely in a call to esddsp to get the sound daemon on the workstation to be used for all sound events in the running X session from the server. - -- Jason A. Pattie [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+iwl9uYsUrHkpYtARAtdTAJ9ZOACukEG+Sl9pMgicbSKB3C0A3gCdGqR3 +9CWC/NNGk4EaJ+LBc6cHk4= =/aJ/ -----END PGP SIGNATURE----- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _____________________________________________________________________ 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