summaryrefslogtreecommitdiffstats
path: root/kde/doinst.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2015-11-19 00:39:14 +0100
committer Eric Hameleers <alien@slackware.com>2015-11-19 00:39:14 +0100
commite6ce676a1774e5588701a622d68f34daca437f56 (patch)
tree98166910b93f03e062c44164cf0d18225881edcb /kde/doinst.sh
parent910a87cd393037d675e5eca4f417b7cef73e977d (diff)
downloadktown-e6ce676a1774e5588701a622d68f34daca437f56.tar.gz
ktown-e6ce676a1774e5588701a622d68f34daca437f56.tar.xz
SDDM: updated.
Diffstat (limited to 'kde/doinst.sh')
-rw-r--r--kde/doinst.sh/sddm-qt59
1 files changed, 5 insertions, 4 deletions
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: