summaryrefslogtreecommitdiff
path: root/x11/gnome-shell/files/patch-js_gdm_loginDialog.js
diff options
context:
space:
mode:
authorOlivier Duchateau <duchateau.olivier@gmail.com>2025-06-10 15:30:58 +0200
committerBaptiste Daroussin <bapt@FreeBSD.org>2025-06-10 15:46:22 +0200
commit76d99deea5b470eb519efb09c5f1e1f3ccb3b179 (patch)
tree47243a0d8b90a24e9fa60c8deadc3cc6f9b7ef4b /x11/gnome-shell/files/patch-js_gdm_loginDialog.js
parentx11-wm/mutter: update to 47.8.1 (diff)
x11/gnome-shell: update to 47.7
PR: 286697
Diffstat (limited to 'x11/gnome-shell/files/patch-js_gdm_loginDialog.js')
-rw-r--r--x11/gnome-shell/files/patch-js_gdm_loginDialog.js29
1 files changed, 29 insertions, 0 deletions
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;