From: Lennart Poettering Date: Sun, 28 Apr 2019 09:24:15 +0000 (+0200) Subject: logind: consider "greeter" sessions suitable as "display" sessions of a user X-Git-Tag: v243-rc1~295^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a2dcb1d78737d3daa301ee63fbdd02837acb71a8;p=thirdparty%2Fsystemd.git logind: consider "greeter" sessions suitable as "display" sessions of a user Interestingly, elect_display_compare() already ordered "user" sessions before "greeter" sessions, though nothing other than "user" sessions where ever considered anyway. Fixes: #12399 --- diff --git a/src/login/logind-user.c b/src/login/logind-user.c index c5d442865cc..05c57c1c327 100644 --- a/src/login/logind-user.c +++ b/src/login/logind-user.c @@ -663,7 +663,7 @@ static bool elect_display_filter(Session *s) { /* Return true if the session is a candidate for the user’s ‘primary session’ or ‘display’. */ assert(s); - return s->class == SESSION_USER && s->started && !s->stopping; + return IN_SET(s->class, SESSION_USER, SESSION_GREETER) && s->started && !s->stopping; } static int elect_display_compare(Session *s1, Session *s2) {