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)
{
test-script-hook-fail-greeter-setup \
test-script-hook-fail-session-setup \
test-shared-data-dirs \
+ test-shared-data-dirs-autologin \
test-upstart-autologin \
test-upstart-login \
test-dbus \
scripts/plymouth-no-seat.conf \
scripts/restart-authentication.conf \
scripts/shared-data-dirs.conf \
+ scripts/shared-data-dirs-autologin.conf \
scripts/script-hooks.conf \
scripts/script-hook-fail-display-setup.conf \
scripts/script-hook-fail-greeter-setup.conf \
--- /dev/null
+#
+# Make sure we manage shared user data directories when autologin is used
+#
+
+[SeatDefaults]
+autologin-user=have-password1
+
+#?RUNNER DAEMON-START
+
+# X server starts
+#?XSERVER-0 START VT=7 SEAT=seat0
+
+# Daemon connects when X server is ready
+#?*XSERVER-0 INDICATE-READY
+#?XSERVER-0 INDICATE-READY
+#?XSERVER-0 ACCEPT-CONNECT
+
+# Session starts
+#?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 DESKTOP_SESSION=default USER=have-password1
+#?XSERVER-0 ACCEPT-CONNECT
+#?SESSION-X-0 CONNECT-XSERVER
+
+# Make sure we created the directory as we started session
+#?*LIST-SHARED-DATA-DIRS
+#?RUNNER LIST-SHARED-DATA-DIRS DIRS=have-password1:1000:100:0770,lightdm:100:100:0770
+
+# Cleanup
+#?*STOP-DAEMON
+#?XSERVER-0 TERMINATE SIGNAL=15
+#?SESSION-X-0 TERMINATE SIGNAL=15
+#?RUNNER DAEMON-EXIT STATUS=0
--- /dev/null
+#!/bin/sh
+./src/dbus-env ./src/test-runner shared-data-dirs-autologin test-gobject-greeter