Hi everyone,

I'm new to this board. I have been using linux from time to time those two last years. I had to switch back to windows for various businesses but I'm now back to slackware and fine tuning it.

Here is a question:
I would like a command (clear and then logout) to be run when user exits the xsession (by the user menu and maybe by ctrl altt backspace).
I tried adding them to the xinit file but it is obviously not the right way. It has no effect.

It would complement a startx put in .bashrc and so replace xdm/gdm.

Thanks in advance,