|
|
|
@ -141,8 +141,8 @@ def set_autologin(username, displaymanagers, root_mount_point):
|
|
|
|
text = sddm_conf.readlines()
|
|
|
|
text = sddm_conf.readlines()
|
|
|
|
with open(sddm_conf_path, 'w') as sddm_conf:
|
|
|
|
with open(sddm_conf_path, 'w') as sddm_conf:
|
|
|
|
for line in text:
|
|
|
|
for line in text:
|
|
|
|
if 'AutoUser=' in line:
|
|
|
|
if 'User=' in line:
|
|
|
|
line = 'AutoUser={}\n'.format(username)
|
|
|
|
line = 'User={}\n'.format(username)
|
|
|
|
sddm_conf.write(line)
|
|
|
|
sddm_conf.write(line)
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
return "Cannot write SDDM configuration file", "SDDM config file %s does not exist" % sddm_conf_path
|
|
|
|
return "Cannot write SDDM configuration file", "SDDM config file %s does not exist" % sddm_conf_path
|
|
|
|
|