From: =?utf-8?q?Florian_M=C3=BCllner?= Date: Fri, 18 Nov 2022 22:40:31 +0100 Subject: inhibitShorcutsDialog: Fix permission check Each permission entry is an array of strings, so checking that against the expected string itself will always fail. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6107 Part-of: (cherry picked from commit b0befbbfbbe4a335f6c184049743202e91fcdfe8) (cherry picked from commit a2cd818c8c4d6a81d565099b01920b8815dea355) --- js/ui/inhibitShortcutsDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/inhibitShortcutsDialog.js b/js/ui/inhibitShortcutsDialog.js index b6f1330..7c3d159 100644 --- a/js/ui/inhibitShortcutsDialog.js +++ b/js/ui/inhibitShortcutsDialog.js @@ -143,7 +143,7 @@ var InhibitShortcutsDialog = GObject.registerClass({ if (permissions[appId] === undefined) // Not found this._dialog.open(); - else if (permissions[appId] === GRANTED) + else if (permissions[appId][0] === GRANTED) this._emitResponse(DialogResponse.ALLOW); else this._emitResponse(DialogResponse.DENY);