Re: How to run a program before logging out
> Anybody knows if there is a way to execute some command(s) before
> logging out from a gnome session?
If you create an executable file in your home directory called .xsession
(remember to do chmod +x .xsession) then chose "default" session from
the session menu in gdm this will run the commands _after_
I'm not sure what would happen if you chose "shut-down" or "restart"
from the logout menu instead of "logout", I'll check it later and get
back to you, unless someone else would like to tell ;)
 If your not using gdm I'm not sure how to choose to run the
.xsession but there should be an option to do so.
Department of Mathematics
Edinburgh EH14 4AS, UK
Tel: +44 (0)131 451 4175