[displaymanager] Use (optional) configuration value

FIXES #1757
This commit is contained in:
Adriaan de Groot 2024-03-03 21:16:00 +01:00
parent 25ab3f7f03
commit 1ca9c7516b

View File

@ -732,11 +732,13 @@ class DMsddm(DisplayManager):
name = "sddm"
executable = "sddm"
configuration_file = "/etc/sddm.conf"
def set_autologin(self, username, do_autologin, default_desktop_environment):
import configparser
# Systems with Sddm as Desktop Manager
sddm_conf_path = os.path.join(self.root_mount_point, "etc/sddm.conf")
sddm_conf_path = os.path.join(self.root_mount_point, self.configuration_file)
sddm_config = configparser.ConfigParser(strict=False)
# Make everything case sensitive