When I shut down my computer I want to show some pending tasks that I have to do before leaving the office.
I have a local application to manage those tasks, so basically I just want to run a command, and shut down after I kill the app that was executed.
I have already tried with these options:
This works only when I select the LogOut option instead Shutdown.
Execute a script after X is killed.
This looks like it does nothing.
./app-to-run && sudo shutdown -h now
I don't like this for two reasons: it prompts for the sudo password, and I can't use my laptop shutdown button.
I am using Ubuntu 10.04.