]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blobdiff - src/seat.c
Fix autologin use case and add a test for it
[sojka/lightdm.git] / src / seat.c
index 11307036a6939d85d3c485d82c977e237e27982e..bf0d9b0eb8b813cd8fe361573180393c09474c78 100644 (file)
@@ -1520,8 +1520,13 @@ seat_real_start (Seat *seat)
             session = create_user_session (seat, autologin_username, TRUE);
 
         if (session)
+        {
             session_set_pam_service (session, AUTOLOGIN_SERVICE);
 
+            /* Make sure shared user directory for this user exists */
+            shared_data_manager_ensure_user_dir (shared_data_manager_get_instance (), session_get_username (session));
+        }
+
         /* Load in background if required */
         if (autologin_in_background && session)
         {