public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Exiting from Qt6 over SSH
@ 2024-09-18 13:41 Peter Humphrey
  2024-09-18 18:59 ` Dale
  2024-09-18 19:21 ` Mark Knecht
  0 siblings, 2 replies; 9+ messages in thread
From: Peter Humphrey @ 2024-09-18 13:41 UTC (permalink / raw
  To: gentoo-user

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.

-- 
Regards,
Peter.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Exiting from Qt6 over SSH
  2024-09-18 13:41 [gentoo-user] Exiting from Qt6 over SSH Peter Humphrey
@ 2024-09-18 18:59 ` Dale
  2024-09-20  8:56   ` Peter Humphrey
  2024-09-18 19:21 ` Mark Knecht
  1 sibling, 1 reply; 9+ messages in thread
From: Dale @ 2024-09-18 18:59 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1650 bytes --]

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

:-)  :-) 

[-- Attachment #2: Type: text/html, Size: 2569 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Exiting from Qt6 over SSH
  2024-09-18 13:41 [gentoo-user] Exiting from Qt6 over SSH Peter Humphrey
  2024-09-18 18:59 ` Dale
@ 2024-09-18 19:21 ` Mark Knecht
  1 sibling, 0 replies; 9+ messages in thread
From: Mark Knecht @ 2024-09-18 19:21 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 882 bytes --]

On Wed, Sep 18, 2024 at 6:42 AM Peter Humphrey <peter@prh.myzen.co.uk>
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.
>
> --
> Regards,
> Peter.
>

I think the canned answer to that problem is running VNC which is what I
do on my Raspberry Pi's. I've done it on a Kubuntu laptop in the past.

Sadly that's more software overhead to maintain but I'm fairly confident
it does work.

Good luck,
MArk

[-- Attachment #2: Type: text/html, Size: 1214 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Exiting from Qt6 over SSH
  2024-09-18 18:59 ` Dale
@ 2024-09-20  8:56   ` Peter Humphrey
  2024-09-20 12:43     ` Dale
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Humphrey @ 2024-09-20  8:56 UTC (permalink / raw
  To: gentoo-user

On Wednesday 18 September 2024 19:59:15 BST Dale wrote:
> 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?. 

--->8

Thank you Dale. I knew it was familiar.

Don't ask why I couldn't find it for myself, because I haven't a clue.

-- 
Regards,
Peter.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Exiting from Qt6 over SSH
  2024-09-20  8:56   ` Peter Humphrey
@ 2024-09-20 12:43     ` Dale
  2024-09-20 12:53       ` Michael
  0 siblings, 1 reply; 9+ messages in thread
From: Dale @ 2024-09-20 12:43 UTC (permalink / raw
  To: gentoo-user

Peter Humphrey wrote:
> On Wednesday 18 September 2024 19:59:15 BST Dale wrote:
>> 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?. 
> --->8
>
> Thank you Dale. I knew it was familiar.
>
> Don't ask why I couldn't find it for myself, because I haven't a clue.
>


Well, I had to dig pretty good.  Even with my awful memory, I knew it
was mentioned.  Using the right search terms was where it got tricky.  I
found it tho.  Seamonkey does a pretty good job when it comes to
searching emails, assume Thunderbird works the same way. 

Very welcome. 

Dale

:-)  :-) 


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Exiting from Qt6 over SSH
  2024-09-20 12:43     ` Dale
@ 2024-09-20 12:53       ` Michael
  2024-09-20 13:38         ` Peter Humphrey
  0 siblings, 1 reply; 9+ messages in thread
From: Michael @ 2024-09-20 12:53 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1460 bytes --]

On Friday 20 September 2024 13:43:44 BST Dale wrote:
> Peter Humphrey wrote:
> > On Wednesday 18 September 2024 19:59:15 BST Dale wrote:
> >> 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?.
> > 
> > --->8
> > 
> > Thank you Dale. I knew it was familiar.
> > 
> > Don't ask why I couldn't find it for myself, because I haven't a clue.
> 
> Well, I had to dig pretty good.  Even with my awful memory, I knew it
> was mentioned.  Using the right search terms was where it got tricky.  I
> found it tho.  Seamonkey does a pretty good job when it comes to
> searching emails, assume Thunderbird works the same way. 
> 
> Very welcome. 
> 
> Dale
> 
> :-)  :-) 

I understand there were some changes with KSMServer on Qt6, so the suggestion 
provided in the previous thread may or may not work.  It may work with X11 (if 
you provide $XDISPLAY), but not with Wayland.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Exiting from Qt6 over SSH
  2024-09-20 12:53       ` Michael
@ 2024-09-20 13:38         ` Peter Humphrey
  2024-09-20 18:27           ` Michael
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Humphrey @ 2024-09-20 13:38 UTC (permalink / raw
  To: gentoo-user

On Friday 20 September 2024 13:53:13 BST Michael wrote:

> I understand there were some changes with KSMServer on Qt6, so the
> suggestion provided in the previous thread may or may not work.  It may
> work with X11 (if you provide $XDISPLAY), but not with Wayland.

Quite so. That's why I was scratching around to find a better way.

In case anyone else comes looking for this, the key is 'man loginctl'.

-- 
Regards,
Peter.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Exiting from Qt6 over SSH
  2024-09-20 13:38         ` Peter Humphrey
@ 2024-09-20 18:27           ` Michael
  2024-09-20 22:44             ` Peter Humphrey
  0 siblings, 1 reply; 9+ messages in thread
From: Michael @ 2024-09-20 18:27 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 571 bytes --]

On Friday 20 September 2024 14:38:53 BST Peter Humphrey wrote:
> On Friday 20 September 2024 13:53:13 BST Michael wrote:
> > I understand there were some changes with KSMServer on Qt6, so the
> > suggestion provided in the previous thread may or may not work.  It may
> > work with X11 (if you provide $XDISPLAY), but not with Wayland.
> 
> Quite so. That's why I was scratching around to find a better way.
> 
> In case anyone else comes looking for this, the key is 'man loginctl'.

Does loginctl save any unsaved application data and logout from a session 
gracefully?

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Exiting from Qt6 over SSH
  2024-09-20 18:27           ` Michael
@ 2024-09-20 22:44             ` Peter Humphrey
  0 siblings, 0 replies; 9+ messages in thread
From: Peter Humphrey @ 2024-09-20 22:44 UTC (permalink / raw
  To: gentoo-user

On Friday 20 September 2024 19:27:33 BST Michael wrote:
> On Friday 20 September 2024 14:38:53 BST Peter Humphrey wrote:
> > On Friday 20 September 2024 13:53:13 BST Michael wrote:
> > > I understand there were some changes with KSMServer on Qt6, so the
> > > suggestion provided in the previous thread may or may not work.  It may
> > > work with X11 (if you provide $XDISPLAY), but not with Wayland.
> > 
> > Quite so. That's why I was scratching around to find a better way.
> > 
> > In case anyone else comes looking for this, the key is 'man loginctl'.
> 
> Does loginctl save any unsaved application data and logout from a session
> gracefully?

Yes, as far as I can tell.

-- 
Regards,
Peter.





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-09-20 22:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-18 13:41 [gentoo-user] Exiting from Qt6 over SSH Peter Humphrey
2024-09-18 18:59 ` Dale
2024-09-20  8:56   ` Peter Humphrey
2024-09-20 12:43     ` Dale
2024-09-20 12:53       ` Michael
2024-09-20 13:38         ` Peter Humphrey
2024-09-20 18:27           ` Michael
2024-09-20 22:44             ` Peter Humphrey
2024-09-18 19:21 ` Mark Knecht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox