
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 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.
It probably would be possible to have an application running that registers with the session management, and then aborts the logout if asked to quit. But that wouldn't prevent other applications from being closed I think.
Yes, exactly. This is my suggestion. :-)
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... - -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlXN/LMACgkQja8UbcUWM1xhngEAh59wfEwEIBinkFMm2zQsdsN5 PAZP8j+Ocq+bwfkMvTsBAIpkf0WYkca61tOrwqRP+GzIC9HGkuknEwJJbERDVI96 =5w7K -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org