mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-25 03:15:44 -05: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:
|
||||
autologin_section['User'] = username
|
||||
else:
|
||||
elif 'User' in autologin_section:
|
||||
del autologin_section['User']
|
||||
|
||||
if default_desktop_environment is not None:
|
||||
|
|
Loading…
Add table
Reference in a new issue