diff --git a/programs/dtlogin/session.c b/programs/dtlogin/session.c index 4dc3b7da..af7f7086 100644 --- a/programs/dtlogin/session.c +++ b/programs/dtlogin/session.c @@ -1911,8 +1911,14 @@ RunGreeter( struct display *d, struct greet_info *greet, if (errorLogFile && errorLogFile[0]) env = setEnv(env, ERRORLOG, errorLogFile); - if (d->authFile) - env = setEnv(env, "XAUTHORITY", d->authFile); + /* + * MCDE: no XAUTHORITY here. The session runs as the user and its + * cookie is in ~/.Xauthority, which SetUserAuthorization() wrote + * (auth.c). Pointing the session at the server's file -- 0600 root + * -- made every client of the session fail to read a cookie: dtsession + * exited and dtlogin showed the greeter again (measured 2026-11-18). + * The fallback path of SetUserAuthorization sets XAUTHORITY itself. + */ if (d->dtlite) env = setEnv(env, DTLITE, "True");