mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 18:05:36 -04:00
Don't assume 'User' exists in autologin section.
This commit is contained in:
parent
fddddc5cb9
commit
8d5e4cdb16
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ def set_autologin(username, displaymanagers, default_desktop_environment, root_m
|
||||||
|
|
||||||
if do_autologin:
|
if do_autologin:
|
||||||
autologin_section['User'] = username
|
autologin_section['User'] = username
|
||||||
else:
|
elif 'User' in autologin_section:
|
||||||
del autologin_section['User']
|
del autologin_section['User']
|
||||||
|
|
||||||
if default_desktop_environment is not None:
|
if default_desktop_environment is not None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue