summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2022-11-18 22:40:31 +0100
committerFlorian Müllner <fmuellner@gnome.org>2022-12-02 21:22:02 +0100
commitcbd098970f2f0e209fd0ff7d2e59ce86ca3eba5f (patch)
treebd168109c19268ab0f07c113de8fd7dd04cbde0b
parent694a4525cbd6bbf9b4d41bcf13968a83dfead194 (diff)
downloadgnome-shell-cbd098970f2f0e209fd0ff7d2e59ce86ca3eba5f.tar.gz
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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2548> (cherry picked from commit b0befbbfbbe4a335f6c184049743202e91fcdfe8)
-rw-r--r--js/ui/inhibitShortcutsDialog.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/ui/inhibitShortcutsDialog.js b/js/ui/inhibitShortcutsDialog.js
index 34d65035b..07fd32dd2 100644
--- a/js/ui/inhibitShortcutsDialog.js
+++ b/js/ui/inhibitShortcutsDialog.js
@@ -149,7 +149,7 @@ var InhibitShortcutsDialog = GObject.registerClass({
let [permissions] = res;
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);