Shutdown/logoff script in Ubuntu 13.10
- by TNT
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.config, 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
truecrypt -d
but of course this would go for any script.