diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2017-09-21 13:53:56 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2017-09-21 13:53:56 +1200 |
commit | 93bcd68d5ffe8989ee11462417473be0debd0f83 (patch) | |
tree | 16b0eb046a808dad88ced4b73628bfd2bc4befb7 /src | |
parent | d25799871b8a9fd9c7b82dc753c31c04ef30283d (diff) | |
download | lightdm-git-93bcd68d5ffe8989ee11462417473be0debd0f83.tar.gz |
Expose autologin-session as a hint to the greeter
Based on a patch by Roland Tapken.
Diffstat (limited to 'src')
-rw-r--r-- | src/seat.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1290,6 +1290,7 @@ create_greeter_session (Seat *seat) Greeter *greeter; const gchar *greeter_wrapper; const gchar *autologin_username; + const gchar *autologin_session; int autologin_timeout; gboolean autologin_guest; @@ -1352,6 +1353,9 @@ create_greeter_session (Seat *seat) autologin_username = seat_get_string_property (seat, "autologin-user"); if (g_strcmp0 (autologin_username, "") == 0) autologin_username = NULL; + autologin_session = seat_get_string_property (seat, "autologin-session"); + if (g_strcmp0 (autologin_session, "") == 0) + autologin_session = NULL; autologin_timeout = seat_get_integer_property (seat, "autologin-user-timeout"); autologin_guest = seat_get_boolean_property (seat, "autologin-guest"); if (autologin_timeout > 0) @@ -1363,6 +1367,8 @@ create_greeter_session (Seat *seat) g_free (value); if (autologin_username) greeter_set_hint (greeter, "autologin-user", autologin_username); + if (autologin_session) + greeter_set_hint (greeter, "autologin-session", autologin_session); if (autologin_guest) greeter_set_hint (greeter, "autologin-guest", "true"); } |