From 59588672ed910bc5251b5d2fe2ff9318ff7a1199 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 28 Jun 2017 03:57:01 -0400 Subject: [PATCH] SDDM-config: allow poorly formatted SDDM config SDDM itself doesn't trip over duplicate sections or keys, but the Python config-parser does (in strict mode). Relax a bit. FIXES #579 --- src/modules/displaymanager/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/displaymanager/main.py b/src/modules/displaymanager/main.py index 32ff43c9c..47d3f08b9 100644 --- a/src/modules/displaymanager/main.py +++ b/src/modules/displaymanager/main.py @@ -320,7 +320,7 @@ def set_autologin(username, # Systems with Sddm as Desktop Manager sddm_conf_path = os.path.join(root_mount_point, "etc/sddm.conf") - sddm_config = configparser.ConfigParser() + sddm_config = configparser.ConfigParser(strict=False) # Make everything case sensitive sddm_config.optionxform = str