From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F1BC3159C96 for ; Mon, 29 Jul 2024 17:41:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ED0BCE29F5; Mon, 29 Jul 2024 17:41:11 +0000 (UTC) Received: from smarthost01c.ixn.mail.zen.net.uk (smarthost01c.ixn.mail.zen.net.uk [212.23.1.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9D2B0E29D6 for ; Mon, 29 Jul 2024 17:41:11 +0000 (UTC) Received: from [82.69.80.10] (helo=cube.localnet) by smarthost01c.ixn.mail.zen.net.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1sYUMw-00Cfj9-5p for gentoo-user@lists.gentoo.org; Mon, 29 Jul 2024 17:41:10 +0000 From: Peter Humphrey To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Scripting KDE? Date: Mon, 29 Jul 2024 18:41:09 +0100 Message-ID: <4907883.GXAFRqVoOG@cube> In-Reply-To: References: <5799968.DvuYhMxLoT@cube> <4581597.LvFx2qVVIh@cube> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Originating-smarthost01c-IP: [82.69.80.10] Feedback-ID: 82.69.80.10 X-Archives-Salt: 98765756-7ca1-41ae-b6b2-69f7a89eb1aa X-Archives-Hash: bddddcb7e7b70a780575dc19a227e393 On Monday, 29 July 2024 16:10:10 BST Mark Knecht wrote: > On Mon, Jul 29, 2024 at 6:42=E2=80=AFAM Peter Humphrey >=20 > wrote: > > On Monday, 29 July 2024 14:32:24 BST Michael wrote: > > > On Monday, 29 July 2024 14:27:03 BST Matt Connell wrote: > > > > On Mon, 2024-07-29 at 14:17 +0100, Peter Humphrey wrote: > > > > > 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 >=20 > scripting >=20 > > > > > inside KDE. > > > >=20 > > > > loginctl terminate-session > > > >=20 > > > > ^ would be the first thing I would try. > > >=20 > > > That'll exit the desktop session. > > >=20 > > > Try 'loginctl hibernate' if you want to save everything to disk, or f= or > > > 'loginctl suspend' for a faster startup. > >=20 > > No, I don't suspend or hibernate here; I'll try Matt's suggestion and >=20 > follow >=20 > > it with 'sudo reboot'. > >=20 > > Thank you both. > >=20 > > -- > > Regards, > > Peter. >=20 > Or possibly sudo shutdown -h now? Yes. The bit I needed was getting KDE to exit gracefully instead of being=20 killed blindly. =2D-=20 Regards, Peter.