summaryrefslogtreecommitdiff
path: root/src/seat.c
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2015-08-10 12:42:48 +1200
committerRobert Ancell <robert.ancell@canonical.com>2015-08-10 12:42:48 +1200
commitbaf1027424c79b584a6305b7c143766141e6767d (patch)
treed0f513c87875c0e498ef7c1fe5ca1251160d52b4 /src/seat.c
parent4e27f43a48ebc5d6c66f92d844cf8c20e4d29b8d (diff)
downloadlightdm-baf1027424c79b584a6305b7c143766141e6767d.tar.gz
Implement autologin-session option (finally). This allows you to set the user session for the autologins (overriding the session for that user)
Diffstat (limited to 'src/seat.c')
-rw-r--r--src/seat.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/seat.c b/src/seat.c
index f9b149dd..bc97d672 100644
--- a/src/seat.c
+++ b/src/seat.c
@@ -1025,6 +1025,14 @@ create_user_session (Seat *seat, const gchar *username, gboolean autostart)
session_name = user_get_xsession (user);
language = user_get_language (user);
+ /* Override session for autologin if configured */
+ if (autostart)
+ {
+ const gchar *autologin_session_name = seat_get_string_property (seat, "autologin-session");
+ if (autologin_session_name)
+ session_name = autologin_session_name;
+ }
+
if (!session_name)
session_name = seat_get_string_property (seat, "user-session");
sessions_dir = config_get_string (config_get_instance (), "LightDM", "sessions-directory");