Commit 69bc9d5d authored by Vitezslav Humpa's avatar Vitezslav Humpa
Browse files

Fix py3 incompatibility with headless-next session processing via

configparser.
parent afeca47b
Pipeline #33846326 failed with stages
in 0 seconds
......@@ -182,7 +182,8 @@ class DisplayManagerSession(object):
need_restart = True
except (configparser.NoOptionError, configparser.NoSectionError) as e:
if self.session is not None:
account_config.add_section('User')
if not account_config.has_section('User'):
account_config.add_section('User')
account_config.set('User', 'XSession', self.session)
account_config.set('User', 'SystemAccount', 'false')
need_restart = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment