Subject: [bug#53926] [PATCH] services: gdm-service-type: Require elogind.

From: Josselin Poiret <[email-masked]>
Date: Thu, 10 Feb 2022 21:27:47 +0100

* gnu/services/xorg.scm (gdm-shepherd-service): Make it require
elogind.
---
Hello everyone,

GDM needs elogind to function, and up until now it was racing with the
elogind service, leading to dbus trying to start a second elogind
while the first is still setting up.  This should fix it.

Best,
Josselin

 gnu/services/xorg.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
index a5e1a1471d..d6dfb07425 100644
--- a/gnu/services/xorg.scm
+++ b/gnu/services/xorg.scm
@@ -975,7 +975,7 @@ (define (gdm-shepherd-service config)
   (list (shepherd-service
          (documentation "Xorg display server (GDM)")
          (provision '(xorg-server))
-         (requirement '(dbus-system user-processes host-name udev))
+         (requirement '(dbus-system user-processes host-name udev elogind))
          (start #~(lambda ()
                     (fork+exec-command
                      (list #$(file-append (gdm-configuration-gdm config)
-- 
2.34.0