From 76d99deea5b470eb519efb09c5f1e1f3ccb3b179 Mon Sep 17 00:00:00 2001 From: Olivier Duchateau Date: Tue, 10 Jun 2025 15:30:58 +0200 Subject: x11/gnome-shell: update to 47.7 PR: 286697 --- x11/gnome-shell/files/patch-js_gdm_loginDialog.js | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 x11/gnome-shell/files/patch-js_gdm_loginDialog.js (limited to 'x11/gnome-shell/files/patch-js_gdm_loginDialog.js') diff --git a/x11/gnome-shell/files/patch-js_gdm_loginDialog.js b/x11/gnome-shell/files/patch-js_gdm_loginDialog.js new file mode 100644 index 000000000000..8f15dfb64671 --- /dev/null +++ b/x11/gnome-shell/files/patch-js_gdm_loginDialog.js @@ -0,0 +1,29 @@ +--- js/gdm/loginDialog.js.orig 2025-04-13 15:04:25 UTC ++++ js/gdm/loginDialog.js +@@ -46,6 +46,10 @@ const _CONFLICTING_SESSION_DIALOG_TIMEOUT = 60; + const _TIMED_LOGIN_IDLE_THRESHOLD = 5.0; + const _CONFLICTING_SESSION_DIALOG_TIMEOUT = 60; + ++function haveSystemd() { ++ return GLib.access('/run/systemd/seats', 0) >= 0; ++} ++ + export const UserListItem = GObject.registerClass({ + Signals: {'activate': {}}, + }, class UserListItem extends St.Button { +@@ -1142,6 +1146,7 @@ export const LoginDialog = GObject.registerClass({ + } + + async _findConflictingSession(startingSessionId) { ++ if (haveSystemd()) { + const loginManager = LoginManager.getLoginManager(); + const sessions = await loginManager.listSessions(); + const [, , startingSessionOwner, ,] = sessions.find(([id, , , ,]) => id === startingSessionId); +@@ -1161,6 +1166,7 @@ export const LoginDialog = GObject.registerClass({ + continue; + + return sessionProxy; ++ } + } + + return null; -- cgit v1.2.3