I'd like to run a script on shut down, which interrupts the logout process and and pops up a window with
zenity. My target is to get autofsck working with lightdm. It seems to work with 12.04 after installing the old *.deb file, if one runs the check script manually. In order to use it, it should run automatically on log out and ask the user if she/he wants to check the disc on shutdown.
There is the option
session-cleanup-script in the file
/etc/lightdm/lightdm.conf which seems to work, if a bash file with full path is used (I can't place the command directly there). But if I press shutdown, there is no time for a user choice.
Is there any other option to solve this problem?
Edit: It seems as if there are also other problems specificially with AutoFsck. The session clean up script runs, but the check command for AutoFsck does not run.