[displaymanager] Massage do_autologin
- Move getting the global setting closer to where it is used - Initialize variable
This commit is contained in:
parent
59a003a41f
commit
229cc241fa
@ -731,7 +731,6 @@ def run():
|
||||
"globalstorage and displaymanager.conf."
|
||||
)
|
||||
|
||||
username = libcalamares.globalstorage.value("autologinUser")
|
||||
root_mount_point = libcalamares.globalstorage.value("rootMountPoint")
|
||||
|
||||
if "default_desktop_environment" in libcalamares.job.configuration:
|
||||
@ -767,11 +766,12 @@ def run():
|
||||
libcalamares.utils.debug("{!s} selected but not installed".format(dm))
|
||||
displaymanagers.remove(dm)
|
||||
|
||||
username = libcalamares.globalstorage.value("autologinUser")
|
||||
if username is not None:
|
||||
libcalamares.utils.debug(
|
||||
"Setting up autologin for user {!s}.".format(username)
|
||||
)
|
||||
do_autologin = True
|
||||
libcalamares.utils.debug("Setting up autologin for user {!s}.".format(username))
|
||||
else:
|
||||
do_autologin = False
|
||||
libcalamares.utils.debug("Unsetting autologin.")
|
||||
|
||||
libcalamares.globalstorage.insert("displayManagers", displaymanagers)
|
||||
|
Loading…
Reference in New Issue
Block a user