
Am Donnerstag, 6. August 2015, 14:12:34 schrieb ianseeks:
On Thursday 06 Aug 2015 13:33:36 Wolfgang Bauer wrote:
Am Donnerstag, 6. August 2015, 11:25:09 schrieb ianseeks:
I have a backup script that runs on "logout" that tends to run while the splash screen is displayed
Which splash screen do you mean here? plymouth? I.e. is the script running _after_ the plasma session is closed?
Once the desktop disappears, there is an image displayed before it reaches the login screen.
So when you are indeed logging out, not shutting down? There is *no* splash screen in that case. Plasma runs the "shutdown" scripts and quits. Then kdm takes over and displays the login greeter again.
is there anyway in Plasma that i can post some progress messages onto the splash screen image as my script runs? If not, are there any plans to allow this?
And how should this work? Plasma has nothing to do with the splash screen, and doesn't even know that it exists.
no idea, thats what i was hoping to find out. I don't know when Plasma ends and KDM starts and if there is anything inbetween.
There is nothing inbetween.
You could try to use kdialog in your script or open an xterm/konsole window, but that only works if your script runs before the session is closed of course.
I'm not sure at what point it runs exactly but its a script configured at "Shutdown" (i'm sure that should be "Logout", shutdown is techie speak) in systemsetting5/Startup and shutdown.
As I already wrote some time ago, the script is run when the Plasma session is shut down. Also, "logout" would have exactly the same problem: would you expect to run your script when you shutdown the system then instead of just logging out? For Plasma it doesn't matter whether you logout, shutdown, or reboot. Plasma quits, it shuts itself down. What is done to the system afterwards is a different story...
I wouldn't want it to open another window, I thought it would be better to be part of a logout process.
Well, you'd have to. There's nothing else where you could display a message.
It might be possible to display messages on the plymouth splash screen (I'm not sure, but the "display-message" option sounds promising), have a look at "man plymouth".
i'll give that a try
Won't help in this case. plymouth only displays its splash screen on boot and halt/shutdown of the system.
But if your script is to be run during system shutdown, why don't you just start it in /etc/init.d/halt.local or similar then? "echo"s would go to the system log then, or the text console.
No, its something i run each time a user logs out thats why i find the "Shutdown" definition in the configuration in systemsettings5 wrong. I would hope (i've not checked) that if i selected "Shutdown" from the menu before logging out, it would run my logout script to completion first.
Hm? If you select "Shutdown", it will logout as well and shutdown/poweroff the whole system afterwards. Plasma5 will behave exactly the same regarding the shutdown script though.
Or am I misunderstanding something here?
I don't thinks so but confusion does get created by systemsettings5 defining user logout as "Shutdown"
No, IMHO the confusion was created by you wanting to display messages at the "splash screen"... ;-) Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org