
Am Freitag, 7. August 2015, 10:42:14 schrieb ianseeks:
On Thursday 06 Aug 2015 20:17:53 Wolfgang Bauer wrote:
Again, you can run kdialog/xdialog I suppose, or an xterm/konsole.
Or, you could probably use the standard desktop notifications, but at the point that your script runs plasma might have shutdown already and might not be able to display them any more. No idea, you'd have to try.
Is there a case for the logout process not to finish completely until all user defined logout processes have completed?
Well, I had a look at the startkde script meanwhile: The startkde script signals KDE to quit, and then runs all shutdown scripts (I suppose that's what you mean with "user defined logout processes"?) and then quits itself afterwards. So, the logout itself is postponed until all shutdown scripts return, the X session keeps running (but not Plasma/KWin or any other application). This also implies that notify-send will not work: there is no desktop any more that would display the notification. But I tried a few things, and kdialog does work. You can e.g. display a message with "kdialog --error Hello!". A dialog window displaying the message will appear (without window decorations as kwin has quit already), and the logout will only continue when you press OK. Also, kdialog's "passive popups" work: "kdialog --passivepopup Hello! 10" will display the message ("Hello!" in this case) for 10 seconds (the period is the number that's been passed), and then continue the logout. That's probably exactly what you are looking for I suppose. For more information, run "kdialog --help". Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org