Which would be the best way to run a script upon GUI logoff, shutdown, hibernate, sleep modes? In 12.04 I think I did this in /etc/lightdm/lightdm.conf, but on 13.10, the folder structure changed and when I create this script, The display manager wont even start upon boot.
I am looking to implement a simple automatic truecrypt unmount command
but of course this would go for any script.
Edit: The file doesn't exist, and if I create it and just put the lines
session-cleanup-script = /path/to/executable/script.sh
, After reboot I can't log in anymore until I delete the file anymore. This also happens if The File starts with
[SeatDefaults] session-cleanup-script = ...
How come this is not working at all, and/or why the file doesnt exist in the first place? thanks