
Am Freitag, 14. August 2015, 16:35:31 schrieb Carlos E. R.:
On 2015-08-14 15:59, Wolfgang Bauer wrote:
Am Donnerstag, 13. August 2015, 20:48:31 schrieb Carlos E. R.:
Yes. And applications can respond that the system must not close now, I think, to abort. I'm going from memory, I could be wrong.
Linux desktops must have a similar mechanism. Once found, it is a matter of writing a specific application that runs a script that instant, and waits.
That's actually part of Xorg's session management protocol I think.
But as mentioned, when those "shutdown scripts" are run, Plasma and all Applications have already quit and the session is already terminated.
Not at the point I suggest. At the point I suggest, an application, such as LibreOffice, can say that there are unsaved files and block logout. The user gets a dialog, and on "cancel", you get back to the full desktop.
That is, all applications are asked whether it is OK to close. Not forced to exit.
Yes, that's what I was talking about. That's session management, and that's part of Xorg itself I think, at least some aspects. http://www.x.org/wiki/X11R6/#index8h4 Of course applications have to support that though. Otherwise they probably will just be closed/killed unconditionally. But even if one application blocks the logout, other applications might/will have been closed already. And the shutdown script that ianseeks uses is called later, when the session and all applications are already closed.
I haven't really studied all details about the session management yet, though...
Me neither. I studied this in Windows, ages ago, but not in Linux. There it is done by something they call "event messages". Applications run continuous loop to fetch a message, then handle it. A message can be a mouse click, menu choice, window resize, close, etc. There are probably thousands of message types.
I wouldn't know where to read about this in Linux...
Somewhere at http://www.x.org/wiki/ or http://freedesktop.org probably. Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org