Peter Humphrey wrote:
> Greetings,
>
> I maintain an ~amd64 system remotely over SSH (from downstairs), and that 
> includes rebooting it with, say, a new kernel. Sometimes the system is 
> running 
> a KDE/Plasma GUI, and I want to log out gracefully from it before rebooting, 
> so that my session is saved. The question is: how? Everything I've found so 
> far stopped working with Qt6. Not even doc.qt.io helps me.
>
> Hasn't this been tackled on this list before now? I thought it had but I 
> can't 
> find it if so.
>


I found this in a previous thread named [gentoo-user] Scripting KDE?. 


> Am Mon, Jul 29, 2024 at 02:17:13PM +0100 schrieb Peter Humphrey:
>> Greetings,
>>
>> I'd like to be able to shut a KDE machine down from another room, over SSH. 
>> If 
>> I do that with a simple 'reboot' command, I lose all my desktop contents. 
>> Not 
>> surprising, as KDE is not shutting itself down but having the rug yanked out 
>> from under it.
>>
>> Is there a way to pass a shutdown command to KDE over SSH? Google doesn't 
>> help 
>> me much, though it has a good deal of stuff on scripting inside KDE.
> Process communication in KDE happens with dbus. So whenever you want to 
> trigger an action in KDE vom the terminal, this is where you should look.
>
> The first two hits when I searched for "kde dbus logout" are:
> https://superuser.com/questions/395820/how-to-properly-end-a-kde-session-from-shell-without-root-privileges
> https://discuss.kde.org/t/logout-reboot-and-shutdown-using-the-terminal/743
>
> Perhaps they put you on the right track to your goal.


Does that help?  Is that the new way?  It's a recent thread. 

Dale

:-)  :-) 

Reply via email to