[displaymanager] Fix sddm config file writing to the wrong location

This commit is contained in:
dalto 2024-03-23 09:43:15 -05:00 committed by Philip Mueller
parent a12edb1065
commit 4425edf90e

View File

@ -734,13 +734,13 @@ class DMsddm(DisplayManager):
name = "sddm"
executable = "sddm"
configuration_file = "etc/sddm.conf"
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, self.configuration_file)
sddm_conf_path = os.path.join(self.root_mount_point, self.configuration_file.lstrip('/'))
sddm_config = configparser.ConfigParser(strict=False)
# Make everything case sensitive