Fixed GDM auto-login bug due to typo

This commit is contained in:
Gormogon 2015-06-13 23:12:35 -04:00
parent a4a22e3ad0
commit 99c4b59f64

View File

@ -140,9 +140,9 @@ def set_autologin(username, displaymanagers, default_desktop_environment, root_m
if do_autologin:
gdm_conf.write("AutomaticLogin={!s}\n".format(username))
mdm_conf.write('AutomaticLoginEnable=True\n')
gdm_conf.write('AutomaticLoginEnable=True\n')
else:
mdm_conf.write('AutomaticLoginEnable=False\n')
gdm_conf.write('AutomaticLoginEnable=False\n')
if do_autologin and os.path.exists("{!s}/var/lib/AccountsService/users".format(root_mount_point)):
os.system("echo \"[User]\" > {!s}/var/lib/AccountsService/users/{!s}".format(root_mount_point, username))