Missing define, check_chroot_call replaced
not really needed here, subprocess.call well tested
This commit is contained in:
parent
4c226fdaf3
commit
a186c7e44b
@ -138,7 +138,7 @@ def set_autologin(username, displaymanagers, root_mount_point):
|
|||||||
if os.path.isfile(sddm_conf_path):
|
if os.path.isfile(sddm_conf_path):
|
||||||
print('SDDM config file exists')
|
print('SDDM config file exists')
|
||||||
else:
|
else:
|
||||||
check_chroot_call("sddm --example-config > etc/sddm.conf", shell=True)
|
subprocess.call("sddm --example-config > etc/sddm.conf", shell=True)
|
||||||
text = []
|
text = []
|
||||||
with open(sddm_conf_path, 'r') as sddm_conf:
|
with open(sddm_conf_path, 'r') as sddm_conf:
|
||||||
text = sddm_conf.readlines()
|
text = sddm_conf.readlines()
|
||||||
|
Loading…
Reference in New Issue
Block a user