For the record, this can be triggered without the power button with
gdbus call -e -d org.gnome.SessionManager -o /org/gnome/SessionManager -m org.gnome.SessionManager.Shutdown
That's easier to do in tests. I have not yet found yet how to synthesize XF86PowerOff with xte (or otherwise).
For the record, this can be triggered without the power button with
gdbus call -e -d org.gnome. SessionManager -o /org/gnome/ SessionManager -m org.gnome. SessionManager. Shutdown
That's easier to do in tests. I have not yet found yet how to synthesize XF86PowerOff with xte (or otherwise).