diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2020-11-05 20:40:51 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2020-11-06 08:59:56 +0100 |
commit | 1e2b70eb9ad995e99d86e49d96104c090a860709 (patch) | |
tree | 43b2a4ea10aae8981d937147f76f3a9a30b8eb60 /testing/source/vtown/kde/post-install/sddm.post-install | |
parent | cf640c7b345c4048ff73f7169dfff4f7fa62290d (diff) | |
download | current-1e2b70eb9ad995e99d86e49d96104c090a860709.tar.gz |
Thu Nov 5 20:40:51 UTC 202020201105204051
a/hwdata-0.341-noarch-1.txz: Upgraded.
a/kernel-generic-5.4.75-x86_64-1.txz: Upgraded.
a/kernel-huge-5.4.75-x86_64-1.txz: Upgraded.
a/kernel-modules-5.4.75-x86_64-1.txz: Upgraded.
d/kernel-headers-5.4.75-x86-1.txz: Upgraded.
k/kernel-source-5.4.75-noarch-1.txz: Upgraded.
l/oniguruma-6.9.6-x86_64-1.txz: Upgraded.
l/openal-soft-1.21.0-x86_64-1.txz: Upgraded.
n/ca-certificates-20201105-noarch-1.txz: Upgraded.
This update provides the latest CA certificates to check for the
authenticity of SSL connections.
x/libwacom-1.6-x86_64-1.txz: Upgraded.
x/xkbcomp-1.4.4-x86_64-1.txz: Upgraded.
isolinux/initrd.img: Rebuilt.
kernels/*: Upgraded.
testing/packages/vtown/kde/sddm-0.18.1-x86_64-1_vtown_3.txz: Rebuilt.
Fixed man page installation directory. Thanks to chrisretusn.
Xsetup: include comments.
Create /var/lib/sddm at build time.
Generate /etc/sddm.conf at build time.
Do not mess with users/groups in doinst.sh. These are expected to exist.
Do not add MinimumVT=7 to sddm.conf, as it is already included by default.
usb-and-pxe-installers/usbboot.img: Rebuilt.
Diffstat (limited to 'testing/source/vtown/kde/post-install/sddm.post-install')
-rw-r--r-- | testing/source/vtown/kde/post-install/sddm.post-install | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/testing/source/vtown/kde/post-install/sddm.post-install b/testing/source/vtown/kde/post-install/sddm.post-install index 6a68a51a..5f52fede 100644 --- a/testing/source/vtown/kde/post-install/sddm.post-install +++ b/testing/source/vtown/kde/post-install/sddm.post-install @@ -9,21 +9,34 @@ else done fi +# Create the SDDM home directory: +mkdir -p $PKG/var/lib/sddm +chmod 755 $PKG/var/lib/sddm +chown sddm:sddm $PKG/var/lib/sddm + # Remove the sddm.conf file because we will generate our own in doinst.sh: rm -f $PKG/etc/sddm.conf -# Make sure that Plasma and SDDM work on older GPUs, -# by forcing Qt5 to use software GL rendering: -cat <<"EOGL" >> $PKG/usr/share/sddm/scripts/Xsetup +# Generate the default sddm.conf: +$PKG/usr/bin/sddm --example-config > $PKG/etc/sddm.conf + +# Set the KDE5 theme 'breeze' as default (integrates better with Plasma 5): +sed -i -e "/\[Theme\]/,/^\[/s/^Current.*/Current=breeze/" $PKG/etc/sddm.conf + +# Move the default config file to .new: +mv $PKG/etc/sddm.conf $PKG/etc/sddm.conf.new # Make sure that Plasma and SDDM work on older GPUs, # by forcing Qt5 to use software GL rendering: +cat << "EOF" >> $PKG/usr/share/sddm/scripts/Xsetup +# Make sure that Plasma and SDDM work on older GPUs by forcing Qt5 to use +# software GL rendering if the OpenGL version is not new enough: OPENGL_VERSION=$(LANG=C glxinfo |grep '^OpenGL version string: ' |head -n 1 |sed -e 's/^OpenGL version string: \([0-9]\).*$/\1/g') if [ "$OPENGL_VERSION" -lt 2 ]; then QT_XCB_FORCE_SOFTWARE_OPENGL=1 export QT_XCB_FORCE_SOFTWARE_OPENGL fi -EOGL +EOF # Ensure that user customizations to the session files are not lost: mv $PKG/usr/share/sddm/scripts/Xsession{,.new} @@ -46,4 +59,3 @@ chmod 0755 $PKG/usr/bin/sddm # Let's also add an example customization (localization of the UI): mkdir -p $PKG/etc/default echo ". /etc/profile.d/lang.sh" > $PKG/etc/default/sddm.new - |