diff --git a/src/modules/displaymanager/main.py b/src/modules/displaymanager/main.py index c00ae1dac..ed00bb635 100644 --- a/src/modules/displaymanager/main.py +++ b/src/modules/displaymanager/main.py @@ -3,7 +3,7 @@ # # === This file is part of Calamares - === # -# Copyright 2014-2018, Philip Müller +# Copyright 2014-2018 & 2020, Philip Müller # Copyright 2014-2015, Teo Mrnjavac # Copyright 2014, Kevin Kofler # Copyright 2017, Alf Gaida @@ -299,6 +299,8 @@ class DMmdm(DisplayManager): "[daemon]\n" "AutomaticLoginEnable=False\n" ) + if 'AutomaticLogin=' in line: + line = "AutomaticLogin={!s}\n".format(username) mdm_conf.write(line) else: @@ -405,6 +407,8 @@ class DMgdm(DisplayManager): ) else: line = "[daemon]\nAutomaticLoginEnable=False\n" + if 'AutomaticLogin=' in line: + line = "AutomaticLogin={!s}\n".format(username) gdm_conf.write(line) else: