From 1a695ed38789f41a2b85adc69992699b3fe4adf7 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-128617 --- ...Register-session-with-GDM-on-startup.patch | 46 +++++++++++++++++++ gnome-shell.spec | 1 + 2 files changed, 47 insertions(+) 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..9d01192 --- /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 ae7a805..1679b3f 100644 +--- a/js/ui/main.js ++++ b/js/ui/main.js +@@ -336,6 +336,8 @@ async function _initializeUI() { + extensionManager = new ExtensionSystem.ExtensionManager(); + extensionManager.init(); + ++ LoginManager.registerSessionWithGDM(); ++ + if (sessionMode.isGreeter && screenShield) { + layoutManager.connect('startup-prepared', () => { + screenShield.showDialog(); +@@ -382,8 +384,6 @@ async function _initializeUI() { + sessionMode.currentMode !== 'initial-setup') + _handleLockScreenWarning(); + +- LoginManager.registerSessionWithGDM(); +- + if (perfModule) { + let perfOutput = GLib.getenv('SHELL_PERF_OUTPUT'); + Scripting.runPerfScript(perfModule, perfOutput); +-- +2.51.0 + diff --git a/gnome-shell.spec b/gnome-shell.spec index 4527738..e102d9f 100644 --- a/gnome-shell.spec +++ b/gnome-shell.spec @@ -50,6 +50,7 @@ Patch: 3939-rediffed.patch Patch: 0001-screenShield-unblank-when-inserting-smartcard.patch Patch: enforce-smartcard-at-unlock.patch Patch: disable-unlock-entry-until-question.patch +Patch: 0001-main-Register-session-with-GDM-on-startup.patch # Extensions Patch: 0001-extensionDownloader-Refuse-to-override-system-extens.patch