Ignore gnome-shell as gnome-session client

Resolves RHEL-129831
Resolves RHEL-142681
This commit is contained in:
Adrian Vovk 2026-02-19 15:26:12 -05:00
parent c77afd737a
commit 7f36def52a
No known key found for this signature in database
GPG Key ID: 90A7B546533E15FB
2 changed files with 42 additions and 0 deletions

View File

@ -28,6 +28,9 @@ Patch: 0001-Fedora-Set-grub-boot-flags-on-shutdown-reboot.patch
Patch: 0001-systemd-Drop-blocking-inhibitors-before-shutdown.patch
# https://issues.redhat.com/browse/RHEL-88009
Patch: 0001-main-only-log-check-accelerated-errors-when-debuggin.patch
# https://issues.redhat.com/browse/RHEL-129831
# https://issues.redhat.com/browse/RHEL-142681
Patch: ignore-gnome-shell-client.patch
Patch: subscription-manager.patch

View File

@ -0,0 +1,39 @@
From 51eeea93291bf5f36ac99e528a22401cd17e0e23 Mon Sep 17 00:00:00 2001
From: Adrian Vovk <adrianvovk@gmail.com>
Date: Wed, 4 Jun 2025 14:00:32 -0400
Subject: [PATCH] Exclude gnome-shell from QueryEndSession and EndSession
This is a temporary hack until we drop builtin session management from
gnome-session and can rely only on systemd session startup
---
gnome-session/gsm-manager.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnome-session/gsm-manager.c b/gnome-session/gsm-manager.c
index f7bb26e6..743a372e 100644
--- a/gnome-session/gsm-manager.c
+++ b/gnome-session/gsm-manager.c
@@ -821,6 +821,10 @@ _client_end_session (GsmClient *client,
gboolean ret;
GError *error;
+ // HACK, but it's temporary until we drop builtin session startup.
+ if (g_strcmp0 ("org.gnome.Shell.desktop", gsm_client_peek_app_id (client)) == 0)
+ return FALSE;
+
error = NULL;
ret = gsm_client_end_session (client, data->flags, &error);
if (! ret) {
@@ -1004,6 +1008,10 @@ _client_query_end_session (const char *id,
gboolean ret;
GError *error;
+ // HACK, but it's temporary until we drop builtin session startup.
+ if (g_strcmp0 ("org.gnome.Shell.desktop", gsm_client_peek_app_id (client)) == 0)
+ return FALSE;
+
error = NULL;
ret = gsm_client_query_end_session (client, data->flags, &error);
if (! ret) {
--
GitLab