X2Go Bug report logs - #1431
Extend haltbt functionality to work standalone

version graph

Package: x2goclient; Maintainer for x2goclient is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goclient is src:x2goclient.

Reported by: Erik Erik <embracetheunknown@live.com>

Date: Sat, 11 Jan 2020 14:55:02 UTC

Severity: wishlist

Merged with 1430

Found in version 4.1.2.1-4

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#1431; Package x2goclient. (Sat, 11 Jan 2020 14:55:02 GMT) (full text, mbox, link).


Acknowledgement sent to Erik Erik <embracetheunknown@live.com>:
New Bug report received and forwarded. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Sat, 11 Jan 2020 14:55:02 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):

From: Erik Erik <embracetheunknown@live.com>
To: "submit@bugs.x2go.org" <submit@bugs.x2go.org>
Subject: Haltbt is useless...
Date: Sat, 11 Jan 2020 14:54:16 +0000
[Message part 1 (text/plain, inline)]
Package: x2goclient
Version: 4.1.2.1-4

I'm using raspberry pi 4 with fresh installation of raspbian buster.

When I start x2goclient with --haltbt the shutdown button is doing nothing when I clicked 100 times? Please let me know how many times should I click for the button to works?

Btw thanks for making this great software.
[Message part 2 (text/html, inline)]

Information forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#1431; Package x2goclient. (Sat, 25 Jan 2020 17:05:02 GMT) (full text, mbox, link).


Acknowledgement sent to Mihai Moldovan <ionic@ionic.de>:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Sat, 25 Jan 2020 17:05:03 GMT) (full text, mbox, link).


Message #10 received at 1431@bugs.x2go.org (full text, mbox, reply):

From: Mihai Moldovan <ionic@ionic.de>
To: 1431@bugs.x2go.org
Cc: Erik Erik <embracetheunknown@live.com>
Subject: Re: Bug#1431: Haltbt is useless...
Date: Sat, 25 Jan 2020 18:02:55 +0100
[Message part 1 (text/plain, inline)]
Control: retitle -1 Extend haltbt functionality to work standalone
Control: severity -1 wishlist

> I'm using raspberry pi 4 with fresh installation of raspbian buster.
> 
> When I start x2goclient with --haltbt the shutdown button is doing nothing when I clicked 100 times? Please let me know how many times should I click for the button to works?

The button works like expected. You're just hold it wrong.

No, seriously, the halt button does exactly what it's supposed to do, you just
misinterpreted what it does. What the button really does is creating a single
file. This file is then interpreted and acted upon by the other scripts within a
thinclient environment.


However, I believe you're not using a thinclient environment. In that case, yes,
the halt button will do nothing useful to you.


I'm changing this issue report into a wishlist bug, because it might make sense
to extend the scope of this button to work in non-TCE modes.

This said, the amount of work required for this is huge, so I probably won't
implement it. Essentially, we'd have to figure out whether we're running inside
of a TCE or not (which is very difficult on its own, since we now have TCEs with
full desktop environment like the MATE Minidesktop variant that are not easily
distinguished from non-TCE environments) and actually initiating a system
shutdown is crazy difficult. Since a normal user can't do that (for obvious
reasons), each desktop environment pretty much has its own way of talking to a
daemon running with higher privileges (usually via dbus) that checks whether the
user is allowed to cause a system shutdown or not and executes the action if
needed. I'm not even sure if there is a standard way of doing so.



Mihai

[signature.asc (application/pgp-signature, attachment)]

Changed Bug title to 'Extend haltbt functionality to work standalone' from 'Haltbt is useless... '. Request was from Mihai Moldovan <ionic@ionic.de> to 1431-submit@bugs.x2go.org. (Sat, 25 Jan 2020 17:05:03 GMT) (full text, mbox, link).


Severity set to 'wishlist' from 'normal' Request was from Mihai Moldovan <ionic@ionic.de> to 1431-submit@bugs.x2go.org. (Sat, 25 Jan 2020 17:05:03 GMT) (full text, mbox, link).


Merged 1430 1431 Request was from Mihai Moldovan <ionic@ionic.de> to control@bugs.x2go.org. (Sat, 25 Jan 2020 17:05:03 GMT) (full text, mbox, link).


Information forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#1431; Package x2goclient. (Mon, 27 Jan 2020 08:55:01 GMT) (full text, mbox, link).


Acknowledgement sent to Stefan Baur <X2Go-ML-1@baur-itcs.de>:
Extra info received and forwarded to list. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Mon, 27 Jan 2020 08:55:01 GMT) (full text, mbox, link).


Message #21 received at 1431@bugs.x2go.org (full text, mbox, reply):

From: Stefan Baur <X2Go-ML-1@baur-itcs.de>
To: Mihai Moldovan <ionic@ionic.de>, 1431@bugs.x2go.org
Cc: Erik Erik <embracetheunknown@live.com>
Subject: Re: Bug#1431: Haltbt is useless...
Date: Mon, 27 Jan 2020 09:53:58 +0100
[Message part 1 (text/plain, inline)]
Am 25.01.20 um 18:02 schrieb Mihai Moldovan:
> This said, the amount of work required for this is huge, so I probably won't
> implement it. Essentially, we'd have to figure out whether we're running inside
> of a TCE or not (which is very difficult on its own, since we now have TCEs with
> full desktop environment like the MATE Minidesktop variant that are not easily
> distinguished from non-TCE environments) and actually initiating a system
> shutdown is crazy difficult. Since a normal user can't do that (for obvious
> reasons), each desktop environment pretty much has its own way of talking to a
> daemon running with higher privileges (usually via dbus) that checks whether the
> user is allowed to cause a system shutdown or not and executes the action if
> needed. I'm not even sure if there is a standard way of doing so.

Actually, we could create a new package and set it as "recommends" or
"suggests" on the x2goclient / x2gothinclient package.

The script we use to shutdown the system in the thinclient environment
is rather simple:
<https://code.x2go.org/gitweb?p=live-build-x2go.git;a=blob;f=config/includes.chroot/lib/live/config/2800-x2go-powerbuttonmonitor;h=cb8d29cf9e1c5cfbed00e8a842f0d1aff0c2fe24;hb=refs/heads/feature/openbox-magic-pixel-workaround-stretch>

The poweroff can be performed faster with the first sequence, but should
not be done that way when there are rw-mounted filesystems under /dev,
that's what the if/else is for.

In its current form, the script has a hardcoded user homedirectory of
/home/user/, but expanding that to check a list of users or all homedirs
under /home should not be hard.

However, on systems where /home/ is on a persistent storage device and
not a ramdisk (as in the thinclient environment), the .halt file needs
to be deleted before executing the shutdown.  That's currently missing.

-Stefan

-- 
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243

[signature.asc (application/pgp-signature, attachment)]

Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Fri Mar 29 05:07:51 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.