summaryrefslogblamecommitdiff
path: root/user/sddm/authed.patch
blob: fe76652f8ef39d2abbf2cf5acfc80c7d6bc65068 (plain) (tree)































                                                                                
From b2520c9fdeff081b1ac66a4a15289cedfa6944b9 Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fabian@ritter-vogt.de>
Date: Wed, 9 Dec 2020 19:33:08 +0100
Subject: [PATCH] Emit XorgDisplayServer::started only when the auth file is
 ready

---
 src/daemon/XorgDisplayServer.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/daemon/XorgDisplayServer.cpp b/src/daemon/XorgDisplayServer.cpp
index 3a7bee0d8..331adcda7 100644
--- a/src/daemon/XorgDisplayServer.cpp
+++ b/src/daemon/XorgDisplayServer.cpp
@@ -219,8 +219,6 @@ namespace SDDM {
         // close our pipe
         close(pipeFds[0]);
 
-        emit started();
-
         // The file is also used by the greeter, which does care about the
         // display number. Write the proper entry, if it's different.
         if(m_display != QStringLiteral(":0")) {
@@ -232,6 +230,8 @@ namespace SDDM {
         }
         changeOwner(m_authPath);
 
+        emit started();
+
         // set flag
         m_started = true;