mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
s/AutoUser/User/
This commit is contained in:
parent
bdc3185dbe
commit
fea3b68d61
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue