running scripts while login and logout
Toby Kelsey
toby_kelsey at ntlworld.com
Tue Jan 24 20:05:11 UTC 2006
> On Tue, 2006-01-24 at 06:52 -0800, L.V.Gandhi wrote:
>>I wanted a script to be run as user while (s)he logs out.
It's odd that gdm and GNOME do not seem to have a mechanism for this.
My suggestion is that you write a script which waits for gnome-session to exit
and then runs your commands. Something like
=== snip ===
#! /bin/bash
gnomepid=$(ps -C gnome-session -o pid=)
wait $gnomepid
source ${HOME}/.gnome-logout
== snip ===
Make it executable and add it to your session startup programs
(System > Preferences > Sessions: Startup programs).
Toby
More information about the ubuntu-users
mailing list