mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
[displaymanager] set_autologin: Unset autologin for sddm when needed
CAL-423 #close
This commit is contained in:
parent
45315e6ae9
commit
bc8dd4225a
1 changed files with 3 additions and 5 deletions
|
@ -267,14 +267,12 @@ def set_autologin(username, displaymanagers, default_desktop_environment, root_m
|
|||
|
||||
if do_autologin:
|
||||
autologin_section['User'] = username
|
||||
else:
|
||||
del autologin_section['User']
|
||||
|
||||
if default_desktop_environment is not None:
|
||||
autologin_section['Session'] = default_desktop_environment.desktop_file
|
||||
|
||||
if autologin_section:
|
||||
if 'Autologin' in sddm_config:
|
||||
sddm_config['Autologin'].update(autologin_section)
|
||||
else:
|
||||
sddm_config['Autologin'] = autologin_section
|
||||
|
||||
with open(sddm_conf_path, 'w') as sddm_config_file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue