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
This commit is contained in:
Adriaan de Groot 2017-06-28 03:57:01 -04:00 committed by Philip
parent 36950f6dd9
commit 59588672ed

View File

@ -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