From e6ce676a1774e5588701a622d68f34daca437f56 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Thu, 19 Nov 2015 00:39:14 +0100 Subject: SDDM: updated. --- kde/doinst.sh/sddm-qt5 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'kde/doinst.sh') diff --git a/kde/doinst.sh/sddm-qt5 b/kde/doinst.sh/sddm-qt5 index c9f6a8d..d98a226 100644 --- a/kde/doinst.sh/sddm-qt5 +++ b/kde/doinst.sh/sddm-qt5 @@ -30,7 +30,7 @@ EOT fi fi if ! chroot . getent passwd sddm > /dev/null; then - useradd -c "SDDM Daemon Owner" -d $sddmhome -u $sddmuid \ + chroot . useradd -c "SDDM Daemon Owner" -d $sddmhome -u $sddmuid \ -g sddm -s /bin/false sddm res=$? if [ $res -ne 0 ]; then @@ -49,11 +49,12 @@ EOT fi fi -mkdir -p $sddmhome -chown -R sddm:sddm $sddmhome > /dev/null +# Without a homedirectory, sddm will not start: +chroot . mkdir -p $sddmhome +chroot . chown -R sddm:sddm $sddmhome > /dev/null # Generate a new configuration file if it does not exist: -chroot . sddm --example-config > /etc/sddm.conf.new +chroot . sddm --example-config > etc/sddm.conf.new if ! grep -q "Current=breeze" etc/sddm.conf.new ; then # Set the KDE5 theme 'breeze' as default, integrates better with Plasma 5: -- cgit v1.2.3