Background: I run code (Python) using SublimeText (ST). Sometimes I forget I have a script running and close the editor, which obviously kills whatever process is running.
I'd like to somehow prevent a given app from closing by displaying a dialog to confirm first.
The idea is to prevent me accidentally closing an app (ST specifically) with a process still running.
Is this possible at all with Pantheon?
This is a somewhat similar question in AskUbuntu.