diff options
Diffstat (limited to 'source/kde/kde/post-install/sddm.post-install')
-rw-r--r-- | source/kde/kde/post-install/sddm.post-install | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/source/kde/kde/post-install/sddm.post-install b/source/kde/kde/post-install/sddm.post-install index 5f52fede3..29229d742 100644 --- a/source/kde/kde/post-install/sddm.post-install +++ b/source/kde/kde/post-install/sddm.post-install @@ -1,19 +1,18 @@ -if [ "$SLACKPAM" == "no" ]; then - # Remove PAM related stuff: - rm -rf $PKG/etc/pam.d -else - # Replace systemd-centric files with ours: - rm -f $PKG/etc/pam.d/sddm* - for FILE in sddm sddm-autologin sddm-greeter ; do - install -Dm644 $CWD/post-install/sddm/pam.d/$FILE $PKG/etc/pam.d/$FILE - done -fi +# Replace systemd-centric files with ours: +rm -f $PKG/etc/pam.d/sddm* +for FILE in sddm sddm-autologin sddm-greeter ; do + install -Dm644 $CWD/post-install/sddm/pam.d/$FILE $PKG/etc/pam.d/$FILE +done # Create the SDDM home directory: mkdir -p $PKG/var/lib/sddm chmod 755 $PKG/var/lib/sddm chown sddm:sddm $PKG/var/lib/sddm +# D-Bus configs should be under /usr, not /etc: +mkdir -p $PKG/usr/share/dbus-1/system.d +mv $PKG/etc/dbus-1/system.d/* $PKG/usr/share/dbus-1/system.d + # Remove the sddm.conf file because we will generate our own in doinst.sh: rm -f $PKG/etc/sddm.conf @@ -38,12 +37,6 @@ if [ "$OPENGL_VERSION" -lt 2 ]; then fi EOF -# Ensure that user customizations to the session files are not lost: -mv $PKG/usr/share/sddm/scripts/Xsession{,.new} -mv $PKG/usr/share/sddm/scripts/Xsetup{,.new} -mv $PKG/usr/share/sddm/scripts/Xstop{,.new} -mv $PKG/usr/share/sddm/scripts/wayland-session{,.new} - # Add a wrapper for the sddm binary, to enable a custom environment: mv $PKG/usr/bin/sddm $PKG/usr/bin/sddm.bin cat <<"EOT" > $PKG/usr/bin/sddm |