After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 790306 - system: don't throw an exception if power off disabled
system: don't throw an exception if power off disabled
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2017-11-13 19:32 UTC by Ray Strode [halfline]
Modified: 2021-07-05 14:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
system: don't throw an exception if power off disabled (3.70 KB, patch)
2017-11-13 19:33 UTC, Ray Strode [halfline]
none Details | Review

Description Ray Strode [halfline] 2017-11-13 19:32:57 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.
Comment 1 Ray Strode [halfline] 2017-11-13 19:33:06 UTC
Created attachment 363544 [details] [review]
system: don't throw an exception if power off disabled
Comment 2 GNOME Infrastructure Team 2021-07-05 14:12:28 UTC
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.