From 5a4ae7f62cea899597126937700a71d03c610e41 Mon Sep 17 00:00:00 2001 From: Kevin Kofler Date: Fri, 7 Nov 2014 01:03:31 +0100 Subject: [PATCH] displaymanager: Run "sddm --example-config > /etc/sddm.conf" in a shell. Otherwise, the output redirection cannot work (and the argument was also misinterpreted as part of the command name). --- src/modules/displaymanager/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/displaymanager/main.py b/src/modules/displaymanager/main.py index c9f8a0d4e..3301e47dc 100644 --- a/src/modules/displaymanager/main.py +++ b/src/modules/displaymanager/main.py @@ -139,7 +139,7 @@ def set_autologin(username, displaymanagers, root_mount_point): if os.path.isfile(sddm_conf_path): print('SDDM config file exists') else: - libcalamares.utils.check_chroot_call("sddm --example-config > /etc/sddm.conf") + libcalamares.utils.check_chroot_call(["sh", "-c", "sddm --example-config > /etc/sddm.conf"]) text = [] with open(sddm_conf_path, 'r') as sddm_conf: text = sddm_conf.readlines()