From: Lennart Poettering Date: Mon, 27 Jun 2011 21:07:13 +0000 (+0200) Subject: logind: check whether newly created session is active X-Git-Tag: v30~138 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9816c4859454d341279f1c9e77df4af4bacd534;p=systemd logind: check whether newly created session is active --- diff --git a/src/logind-session.c b/src/logind-session.c index 705b1e41..8e35e090 100644 --- a/src/logind-session.c +++ b/src/logind-session.c @@ -511,13 +511,16 @@ int session_start(Session *s) { /* Create X11 symlink */ session_link_x11_socket(s); - /* Save session data */ - session_save(s); - dual_timestamp_get(&s->timestamp); + if (s->seat) + seat_read_active_vt(s->seat); + s->started = true; + /* Save session data */ + session_save(s); + session_send_signal(s, true); if (s->seat) {