create sddm.conf if not present

main
demmm 10 years ago
parent ee2ed0921e
commit 972fe23131

@ -135,6 +135,8 @@ def set_autologin(username, displaymanagers, root_mount_point):
if "sddm" in displaymanagers: if "sddm" in displaymanagers:
# Systems with Sddm as Desktop Manager # Systems with Sddm as Desktop Manager
sddm_conf_path = os.path.join(root_mount_point, "etc/sddm.conf") sddm_conf_path = os.path.join(root_mount_point, "etc/sddm.conf")
if sddm_conf_path != os.path.join(root_mount_point, "etc/sddm.conf")
check_chroot_call(["sddm", "--example-config"])
text = [] text = []
if os.path.exists(sddm_conf_path): if os.path.exists(sddm_conf_path):
with open(sddm_conf_path, 'r') as sddm_conf: with open(sddm_conf_path, 'r') as sddm_conf:

Loading…
Cancel
Save