launchd at logout
launchd allows you to start an application, say open a text editor, just as user gets the desktop (after logging into console) using the RunAtLoad option. Now, even though https://developer.apple.com/library/mac/documentation/macosx/conceptual/bpsystem startup/chapters/CustomLogin.html says otherwise, the logout script still works in 10.9. But it does not seem to behave the same way. What I want to do is
- User tells computer to log her out of the console
- Application is loaded and waits on user input.
- User does her thing with said application and closes it
- Logout procedure is completed and we are back to the login screen.
How can I do step 2?