[displaymanager] Fix sddm config file writing to the wrong location
This commit is contained in:
parent
2204c58b44
commit
bdd059ffa8
@ -732,13 +732,13 @@ class DMsddm(DisplayManager):
|
|||||||
name = "sddm"
|
name = "sddm"
|
||||||
executable = "sddm"
|
executable = "sddm"
|
||||||
|
|
||||||
configuration_file = "etc/sddm.conf"
|
configuration_file = "/etc/sddm.conf"
|
||||||
|
|
||||||
def set_autologin(self, username, do_autologin, default_desktop_environment):
|
def set_autologin(self, username, do_autologin, default_desktop_environment):
|
||||||
import configparser
|
import configparser
|
||||||
|
|
||||||
# Systems with Sddm as Desktop Manager
|
# 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)
|
sddm_config = configparser.ConfigParser(strict=False)
|
||||||
# Make everything case sensitive
|
# Make everything case sensitive
|
||||||
|
Loading…
Reference in New Issue
Block a user