Bug 1512662

Summary: gnome-shell throws an exception every time user clicks system menu if logout is disabled
Product: Red Hat Enterprise Linux 7 Reporter: Ray Strode [halfline] <rstrode>
Component: gnome-shellAssignee: Florian Müllner <fmuellner>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5CC: bgollahe, tpelka
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gnome-shell-3.26.2-2.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 13:07:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ray Strode [halfline] 2017-11-13 19:36:32 UTC
If an admin disables logout for users using polkit:

╎❯ cat /etc/polkit-1/localauthority/90-mandatory.d/disable-shutdown.pkla
[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

Then gnome-shell throws an exception when users click on the system menu:

Nov 13 13:56:01 localhost.localdomain gnome-shell[3346]: JS ERROR: TypeError: childToShow is null
                                                         AltSwitcher<._sync@resource:///org/gnome/shell/ui/status/system.js:70:13
                                                         wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
                                                         SystemActions<._updatePowerOff@resource:///org/gnome/shell/misc/systemActions.js:335:9
                                                         wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
                                                         SystemActions<._updateHaveShutdown/<@resource:///org/gnome/shell/misc/systemActions.js:326:13
                                                         _proxyInvoker/asyncCallback@resource:///org/gnome/gjs/modules/overrides/Gio.js:90:13

Comment 6 errata-xmlrpc 2018-04-10 13:07:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0770