From 4425edf90ed072dc58430709bb6e1f801e89c6ed Mon Sep 17 00:00:00 2001 From: dalto Date: Sat, 23 Mar 2024 09:43:15 -0500 Subject: [PATCH] [displaymanager] Fix sddm config file writing to the wrong location --- src/modules/displaymanager/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/displaymanager/main.py b/src/modules/displaymanager/main.py index cb6ca8b20..8114649ac 100644 --- a/src/modules/displaymanager/main.py +++ b/src/modules/displaymanager/main.py @@ -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