Backport MR #2548 to fix keyboard shortcut inhibiting

This commit is contained in:
Adam Williamson 2022-11-21 09:39:51 -08:00
parent 83294bac3a
commit f55b0c81b9
2 changed files with 41 additions and 1 deletions

View File

@ -0,0 +1,31 @@
From b0befbbfbbe4a335f6c184049743202e91fcdfe8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
Date: Fri, 18 Nov 2022 22:40:31 +0100
Subject: [PATCH] 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>
---
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 b6f1330b2..7c3d15996 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);
--
2.37.3

View File

@ -2,7 +2,7 @@
Name: gnome-shell Name: gnome-shell
Version: 43.1 Version: 43.1
Release: 3%{?dist} Release: 4%{?dist}
Summary: Window management and application launching for GNOME Summary: Window management and application launching for GNOME
License: GPLv2+ License: GPLv2+
@ -18,6 +18,12 @@ Patch1: 2534.patch
# https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2533 # https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2533
Patch2: post-43.1-fixes.patch Patch2: post-43.1-fixes.patch
# Backport fix for keyboard shortcut inhibit permissions
# https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6107
# https://gitlab.gnome.org/GNOME/gnome-boxes/-/issues/872
# https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2548
Patch3: 0001-inhibitShorcutsDialog-Fix-permission-check.patch
# Replace Epiphany with Firefox in the default favourite apps list # Replace Epiphany with Firefox in the default favourite apps list
Patch10001: gnome-shell-favourite-apps-firefox.patch Patch10001: gnome-shell-favourite-apps-firefox.patch
@ -240,6 +246,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/evolution-calendar.de
%{_mandir}/man1/gnome-shell.1* %{_mandir}/man1/gnome-shell.1*
%changelog %changelog
* Mon Nov 21 2022 Adam Williamson <awilliam@redhat.com> - 43.1-4
- Backport MR #2548 to fix keyboard shortcut inhibiting
* Thu Nov 17 2022 Jonas Ådahl <jadahl@redhat.com> - 43.1-3 * Thu Nov 17 2022 Jonas Ådahl <jadahl@redhat.com> - 43.1-3
- Backport missing screencast if gstreamer1-vaapi is installed - Backport missing screencast if gstreamer1-vaapi is installed