From: Frank Steinmetzger <Warp_7@gmx.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Scripting KDE?
Date: Sun, 18 Aug 2024 18:59:47 +0200 [thread overview]
Message-ID: <ZsIogzDSQy7kazbA@kern> (raw)
In-Reply-To: <5799968.DvuYhMxLoT@cube>
[-- Attachment #1: Type: text/plain, Size: 1143 bytes --]
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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2024-08-18 17:00 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-29 13:17 [gentoo-user] Scripting KDE? Peter Humphrey
2024-07-29 13:27 ` Matt Connell
2024-07-29 13:32 ` Michael
2024-07-29 13:37 ` Matt Connell
2024-07-29 13:42 ` Peter Humphrey
2024-07-29 15:10 ` Mark Knecht
2024-07-29 17:41 ` Peter Humphrey
2024-07-29 19:34 ` Dale
2024-08-18 17:03 ` Frank Steinmetzger
2024-08-18 18:15 ` Dale
2024-08-18 22:41 ` Michael
2024-08-18 23:12 ` Dale
2024-08-19 9:11 ` Michael
2024-08-19 10:35 ` Waldo Lemmer
2024-08-19 13:15 ` Dale
2024-08-31 19:52 ` Wol
2024-08-31 17:11 ` Wols Lists
2024-08-31 19:03 ` Dale
2024-09-01 10:32 ` Peter Humphrey
2024-07-29 20:12 ` gentoo
2024-07-30 9:26 ` Peter Humphrey
2024-08-18 16:59 ` Frank Steinmetzger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZsIogzDSQy7kazbA@kern \
--to=warp_7@gmx.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox