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