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.

  • I'm pretty sure this qualifies as feature request for Gala.
    – embik
    Commented Mar 11, 2016 at 9:27

1 Answer 1


The elementary apps are still in the process of standardization and I don't believe there are any hooks to easily add the feature you seek without rebuilding your own version of the software from the source. But, hey, if you do it, push the code upstream so that other developers can use it!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.