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.

-- 
Grüße | Greetings | Salut | Qapla’
Please do not share anything from, with or about me on any social network.

Suicide is the most honest form of self-criticism.

Attachment: signature.asc
Description: PGP signature

Reply via email to