From 1c677450db3747705c3c298f68dbc03a7ebd87fe Mon Sep 17 00:00:00 2001 From: Joan Torres Lopez Date: Fri, 14 Nov 2025 17:36:57 +0100 Subject: [PATCH] Register session with GDM on startup Resolves: https://issues.redhat.com/browse/RHEL-129287 --- ...Register-session-with-GDM-on-startup.patch | 46 +++++++++++++++++++ gnome-shell.spec | 7 ++- 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 0001-main-Register-session-with-GDM-on-startup.patch diff --git a/0001-main-Register-session-with-GDM-on-startup.patch b/0001-main-Register-session-with-GDM-on-startup.patch new file mode 100644 index 0000000..082379e --- /dev/null +++ b/0001-main-Register-session-with-GDM-on-startup.patch @@ -0,0 +1,46 @@ +From 32a013304f8c507cb72a5419c7f4b7c553253520 Mon Sep 17 00:00:00 2001 +From: Adrian Vovk +Date: Thu, 1 May 2025 18:34:52 -0400 +Subject: [PATCH] main: Register session with GDM on startup + +When no monitor is connected, gnome-shell starts but never emits +`startup-prepared` nor `startup-complete`. As a result, GDM never +detects that the shell has launched and plymouthd remains running, +preventing the system from reaching graphical.target. + +Ensure that registerSessionWithGDM() is called even when no monitor +is connected, so GDM can terminate plymouthd and allow the system to +reach graphical.target properly. + +Part of https://gitlab.gnome.org/GNOME/gdm/-/merge_requests/285 + +Part-of: +--- + js/ui/main.js | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/js/ui/main.js b/js/ui/main.js +index 7cfbba3..c753ab6 100644 +--- a/js/ui/main.js ++++ b/js/ui/main.js +@@ -274,6 +274,8 @@ function _initializeUI() { + extensionManager = new ExtensionSystem.ExtensionManager(); + extensionManager.init(); + ++ LoginManager.registerSessionWithGDM(); ++ + if (sessionMode.isGreeter && screenShield) { + layoutManager.connect('startup-prepared', () => { + screenShield.showDialog(); +@@ -307,8 +309,6 @@ function _initializeUI() { + sessionMode.currentMode !== 'initial-setup') + _handleLockScreenWarning(); + +- LoginManager.registerSessionWithGDM(); +- + let perfModuleName = GLib.getenv("SHELL_PERF_MODULE"); + if (perfModuleName) { + let perfOutput = GLib.getenv("SHELL_PERF_OUTPUT"); +-- +2.51.0 + diff --git a/gnome-shell.spec b/gnome-shell.spec index 55e9860..0ec1f82 100644 --- a/gnome-shell.spec +++ b/gnome-shell.spec @@ -8,7 +8,7 @@ Name: gnome-shell Version: 40.10 -Release: 32%{?dist} +Release: 33%{?dist} Summary: Window management and application launching for GNOME License: GPLv2+ @@ -37,6 +37,7 @@ Patch18: 0001-authPrompt-Disregard-smartcard-status-changes-events.patch Patch19: 0001-loginDialog-Show-session-menu-button-when-in-IN_PROG.patch Patch20: 0001-systemActions-Optionally-allow-restart-shutdown-on-l.patch Patch21: 0001-authPrompt-Connect-disable-show-password-key-with-pa.patch +Patch22: 0001-main-Register-session-with-GDM-on-startup.patch # Misc. Patch30: 0001-panel-add-an-icon-to-the-ActivitiesButton.patch @@ -306,6 +307,10 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/evolution-calendar.de %endif %changelog +* Tue Nov 18 2025 Joan Torres Lopez - 40.10-33 +- Register session with GDM on startup + Resolves: RHEL-129287 + * Thu Nov 27 2025 Jonas Ã…dahl - 40.10-32 - Avoid broken app instances with remote clients Resolves: RHEL-68825