mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 18:05:36 -04:00
[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
1 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue