greetd: remove autologin copied from the Live ISO (fixes #1995)
This commit is contained in:
parent
d9b4562076
commit
136ec3df58
@ -837,8 +837,12 @@ class DMgreetd(DisplayManager):
|
|||||||
else:
|
else:
|
||||||
self.config_data['default_session']['command'] = "agreety --cmd " + de_command
|
self.config_data['default_session']['command'] = "agreety --cmd " + de_command
|
||||||
|
|
||||||
if do_autologin == True:
|
if do_autologin:
|
||||||
|
# Log in as user, with given DE
|
||||||
self.config_data['initial_session'] = dict(command = de_command, user = username)
|
self.config_data['initial_session'] = dict(command = de_command, user = username)
|
||||||
|
elif 'initial_session' in self.config_data:
|
||||||
|
# No autologin, remove any autologin that was copied from the live ISO
|
||||||
|
del self.config_data['initial_session']
|
||||||
|
|
||||||
self.config_write()
|
self.config_write()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user