From 4d654b71e3826dd4ee234e051d16c12d507151f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20M=C3=BCller?= Date: Wed, 22 Apr 2020 19:24:10 +0200 Subject: [PATCH] [displaymanager] update OEM autologin --- src/modules/displaymanager/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/displaymanager/main.py b/src/modules/displaymanager/main.py index 40189bfc7..a737ece60 100644 --- a/src/modules/displaymanager/main.py +++ b/src/modules/displaymanager/main.py @@ -289,7 +289,7 @@ class DMmdm(DisplayManager): for line in text: if 'AutomaticLogin=' in line: line = "AutomaticLogin={!s}\n".format(username) - else '[daemon]' in line: + elif '[daemon]' in line: if do_autologin: line = ( "[daemon]\n" @@ -400,7 +400,7 @@ class DMgdm(DisplayManager): for line in text: if 'AutomaticLogin=' in line: line = "AutomaticLogin={!s}\n".format(username) - else '[daemon]' in line: + elif '[daemon]' in line: if do_autologin: line = ( "[daemon]\n"