]> err.no Git - systemd/commitdiff
logind: check whether newly created session is active
authorLennart Poettering <lennart@poettering.net>
Mon, 27 Jun 2011 21:07:13 +0000 (23:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 27 Jun 2011 21:07:13 +0000 (23:07 +0200)
src/logind-session.c

index 705b1e41cf6190a2f004ba14c6365f4825b11a05..8e35e09069c4b503035375238d2eee4ae2dca04d 100644 (file)
@@ -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) {