Run Script On Logout, Ubuntu Linux

On Oct 11, 2010 1 comments

If you wanna run some script on logout, your answer is here. Do this :
Go to /etc/gdm/PostSession directory and open a file named Default,


$ vi /etc/gdm/PostSession/Default


Call your script before exit 0


#!/bin/sh
call your script here
exit 0


Save the file, and now the script will be executes everytime you logout from your computer.

1 comments:

Joshua said...

Great buddy.... I've been searching this opton for many days.....
Thanks a ton

Post a Comment