You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, June 16th 2003, 1:53pm

How to execute a command a each logout.

Hi,
everything is in the title. I want to be able to run a program each time I logout from a kde session. I looking for something like autostart but for logout.
Thanks for any help.
Manoel

2

Monday, June 16th 2003, 2:02pm

you can try the '.logout', but that script to run whenever a interactive shell logouts out, not just the very last one.

Maybe in your .logout script you can test to see if that script is the last to exit?
The Best Games are for Download @ GCCLINUX

3

Monday, June 16th 2003, 4:37pm

Quoted

Original von tuxnet

you can try the '.logout', but that script to run whenever a interactive shell logouts out, not just the very last one.

Maybe in your .logout script you can test to see if that script is the last to exit?


I have thought about this but the script I want to execute need interaction trought konsole. I would like something witch intercept the click on logout from kmenu or on lock/logout applet which run first my small program and then logout.

4

Thursday, June 19th 2003, 12:10pm

Somebody answered my question here:
http://lists.kde.org/?l=kde&m=105593973330390&w=2

I've just created a ~/.kde/shudown directory and putted my script in.

Manoel.