This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch main
in repository entrance.

View the commit online.

commit 5f5d6bcfbb7904bd7524f7944d6a852e482dfafd
Author: Alastair Poole <[email protected]>
AuthorDate: Tue Nov 24 21:22:50 2026 +0000

    display: wait for login window to close before launching.
    
    Entrance keeps the greeter process alive for five seconds after the session starts. On the default X11 setup, the greeter and Enlightenment share the X server. I’ll move greeter shutdown ahead of session launch on that path so Enlightenment starts with the login window already gone.
---
 src/daemon/Display.cpp | 8 +++++++-
 src/daemon/Display.h   | 1 +
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/daemon/Display.cpp b/src/daemon/Display.cpp
index 3cee7b1..41028fa 100644
--- a/src/daemon/Display.cpp
+++ b/src/daemon/Display.cpp
@@ -433,6 +433,8 @@ namespace Entrance {
         // save session desktop file name, we'll use it to set the
         // last session later, in slotAuthenticationFinished()
         m_sessionName = session.fileName();
+        m_sessionUsesSharedXServer = m_displayServerType == X11DisplayServerType
+                                    && session.type() == Session::X11Session;
 
         m_sessionTerminalId = m_terminalId;
         if ((session.type() == Session::WaylandSession && m_displayServerType == X11DisplayServerType) || (m_greeter->isRunning() && m_displayServerType != X11DisplayServerType)) {
@@ -512,6 +514,10 @@ namespace Entrance {
 
             if (m_socket)
                 emit loginSucceeded(m_socket);
+
+            // Remove the greeter before the desktop starts managing windows on this X server.
+            if (m_reuseSessionId.isNull() && m_sessionUsesSharedXServer)
+                m_greeter->stop();
         } else if (m_socket) {
             qDebug() << "Authentication for user " << user << " failed";
             emit loginFailed(m_socket);
@@ -562,7 +568,7 @@ namespace Entrance {
 
     void Display::slotSessionStarted(bool success) {
         qDebug() << "Session started" << success;
-        if (success) {
+        if (success && !m_sessionUsesSharedXServer) {
             QTimer::singleShot(5000, m_greeter, &Greeter::stop);
         }
     }
diff --git a/src/daemon/Display.h b/src/daemon/Display.h
index c507628..f3e8ec5 100644
--- a/src/daemon/Display.h
+++ b/src/daemon/Display.h
@@ -94,6 +94,7 @@ namespace Entrance {
         DisplayServerType m_displayServerType = X11DisplayServerType;
 
         bool m_started { false };
+        bool m_sessionUsesSharedXServer { false };
 
         int m_terminalId = -1;
         int m_sessionTerminalId = 0;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to