sddm-0.19.0-Xserver_startup.patch 915 B

123456789101112131415161718192021222324252627282930313233343536
  1. From a13d38ea605a8db7392f90ae1a894e14d7746e8d Mon Sep 17 00:00:00 2001
  2. From: Fabian Vogt <fabian@ritter-vogt.de>
  3. Date: Wed, 9 Dec 2020 19:33:08 +0100
  4. Subject: [PATCH] Emit XorgDisplayServer::started only when the auth file is
  5. ready
  6. ---
  7. src/daemon/XorgDisplayServer.cpp | 4 ++--
  8. 1 file changed, 2 insertions(+), 2 deletions(-)
  9. diff --git a/src/daemon/XorgDisplayServer.cpp b/src/daemon/XorgDisplayServer.cpp
  10. index 5f93a1b..4c51304 100644
  11. --- a/src/daemon/XorgDisplayServer.cpp
  12. +++ b/src/daemon/XorgDisplayServer.cpp
  13. @@ -222,8 +222,6 @@ namespace SDDM {
  14. // close our pipe
  15. close(pipeFds[0]);
  16. -
  17. - emit started();
  18. }
  19. // The file is also used by the greeter, which does care about the
  20. @@ -236,6 +234,8 @@ namespace SDDM {
  21. }
  22. changeOwner(m_authPath);
  23. + emit started();
  24. +
  25. // set flag
  26. m_started = true;
  27. --
  28. 2.35.1