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
parent 90e8a6cff9
commit 2905a9969d

View File

@ -318,7 +318,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