summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2014-02-18 17:07:03 -0500
committerMichael Terry <michael.terry@canonical.com>2014-02-18 17:07:03 -0500
commit4017f1cae435ef889e756146b332754d8a376474 (patch)
tree4f3ca3b1144b9581ae5b7d781eba612f44537354 /src
parent065745fe5e93d975affbf31b6bd59cb613746a7a (diff)
downloadlightdm-4017f1cae435ef889e756146b332754d8a376474.tar.gz
Fix autologin use case and add a test for it
Diffstat (limited to 'src')
-rw-r--r--src/seat.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/seat.c b/src/seat.c
index 11307036..bf0d9b0e 100644
--- a/src/seat.c
+++ b/src/seat.c
@@ -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)
{