GNOME Bugzilla – Bug 790306
system: don't throw an exception if power off disabled
Last modified: 2021-07-05 14:12:28 UTC
An admin can disable the power off button with polkit policy. For instance, [Disallow shutdown] Identity=unix-user:* Action=org.freedesktop.login1.power-off*;org.freedesktop.login1.reboot*;org.freedesktop.login1.suspend*;org.freedesktop.login1.hibernate*; ResultInactive=no ResultActive=no If done, gnome-shell will throw an exception every time a user clicks on the system menu. This commit fixes the exception.
Created attachment 363544 [details] [review] system: don't throw an exception if power off disabled
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/ Thank you for your understanding and your help.