Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to run logout script

Hi to all, maybe it's actually a simple question but I can't figure it out. I would like to run a logout script when I disconnect from Gnome user session.

I read that _/etc/gdm/PostSession/Default_ is executed on logout as _root_.

I read also that the .bash_logout file runs when you disconnect from bash login.

I don't understand how to run a script as user when logging out from Gnome.

I found this link but it seems I'm not able to get it working. Thanks in advance.

Paolo