Toshiro wrote: > 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 #!/bin/bash gnome-session some-other-commands (remember to do chmod +x .xsession) then chose "default" session from the session menu in gdm[1] this will run the commands _after_ gnome-session ends. 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 ;) [1] 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. -- Michael Graham Department of Mathematics Heriot-Watt University Edinburgh EH14 4AS, UK Tel: +44 (0)131 451 4175 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]