diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2015-08-10 12:42:48 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2015-08-10 12:42:48 +1200 |
commit | baf1027424c79b584a6305b7c143766141e6767d (patch) | |
tree | d0f513c87875c0e498ef7c1fe5ca1251160d52b4 /src/seat.c | |
parent | 4e27f43a48ebc5d6c66f92d844cf8c20e4d29b8d (diff) | |
download | lightdm-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.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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"); |