[Github-comments] [geany/geany] Save project on file open/close (#1860)

Matthew Brush notifications at xxxxx
Thu May 24 02:49:44 UTC 2018


> Probably not, the callback calls main_quit() which asks about unsaved files, so unless its a fast user or everything is saved, even longer is probably not enough.

Like I said, we should fix this code then. At the very least Geany could save anything that doesn't require user-intervention, like the list of open files, preferences, etc.

> IIUC the systemd timeout only applies to services it starts, interactive GUI processes get theirs from the session manager, which IIUC is only required to give time to apps that registered for a "save yourself" call, which Geany is not.

I'm certainly no expert here, but as I understand it, the "session managers" in X, Win, Macos, etc. are to allow applications to inhibit shutting down until the user can respond to request to save work (or some timeout expires, presumably). But I do not believe that they, even in the absence of any special hooks, just `SIGKILL` every process immediately. Graphical environments like X would presumably try to close the windows (as if the user clicked the X button), allowing them to save some state, or at the very least send a `SIGTERM` and give them N seconds to cleanup. Again, not an expert here, but the `SIGKILL` seems like the least likely thing "session managers" or any sane user-space process manager would do on shutdown (on a desktop/server/etc).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1860#issuecomment-391570735
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20180523/14d8bc27/attachment.html>


More information about the Github-comments mailing list