Revert "[displaymanager] update OEM autologin"

This reverts commit 0dd93810ac.
This commit is contained in:
Philip Müller 2020-04-22 19:48:23 +02:00
parent 0dd93810ac
commit 96251ed1c3

View File

@ -287,10 +287,10 @@ class DMmdm(DisplayManager):
with open(mdm_conf_path, 'w') as mdm_conf:
for line in text:
if 'AutomaticLogin=' in line and do_autologin::
if 'AutomaticLogin=' in line:
line = "AutomaticLogin={!s}\n".format(username)
else:
if '[daemon]' in line and do_autologin:
elif '[daemon]' in line:
if do_autologin:
line = (
"[daemon]\n"
"AutomaticLogin={!s}\n"
@ -398,10 +398,10 @@ class DMgdm(DisplayManager):
with open(gdm_conf_path, 'w') as gdm_conf:
for line in text:
if 'AutomaticLogin=' in line and do_autologin::
if 'AutomaticLogin=' in line:
line = "AutomaticLogin={!s}\n".format(username)
else:
if '[daemon]' in line and do_autologin:
elif '[daemon]' in line:
if do_autologin:
line = (
"[daemon]\n"
"AutomaticLogin={!s}\n"