summaryrefslogtreecommitdiff
path: root/debian/patches/autologin-session-workaround.patch
blob: 297b760c6a54ebe0cf201e43e432fd00d0240d25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Workaround faulty setting from Ubuntu user-setup package
Author: Robert Ancell <robert.ancell@canonical.com>
Bug: https://bugs.launchpad.net/bugs/1484083

Index: trunk/src/seat.c
===================================================================
--- trunk.orig/src/seat.c
+++ trunk/src/seat.c
@@ -1050,7 +1050,12 @@ create_user_session (Seat *seat, const g
     if (autostart)
     {
         const gchar *autologin_session_name = seat_get_string_property (seat, "autologin-session");
-        if (autologin_session_name)
+        /* Workaround faulty setting from Ubuntu user-setup package
+         * See https://bugs.launchpad.net/bugs/1484083
+         */
+        if (autologin_session_name && strcmp (autologin_session_name, "lightdm-autologin") == 0)
+            l_debug (seat, "Ignoring invalid autologin-session option (LP: #1484083)");
+        else if (autologin_session_name)
             session_name = autologin_session_name;
     }