I have this simple .xsession #!/bin/bash -l gnome-session and this even simpler .bash_logout echo hello > /tmp/logout When I logout from a console the file /tmp/logout is created (as expected) but when I logout of gnome the file isn't created. Can anyone explain this behaviour? -- OoberMick