summaryrefslogtreecommitdiffstats
path: root/kde/post-install/sddm-qt5
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2020-06-08 21:30:18 +0200
committer Eric Hameleers <alien@slackware.com>2020-06-08 21:30:18 +0200
commite41c0c99c8d498cc2f3761eb35d4f5389a6d1798 (patch)
tree3b0294e2874f1a34943eeb9a19682313ba43e6c2 /kde/post-install/sddm-qt5
parentf6a28c20081bd24619074c99ddfeb1932b09df2f (diff)
downloadktown-e41c0c99c8d498cc2f3761eb35d4f5389a6d1798.tar.gz
ktown-e41c0c99c8d498cc2f3761eb35d4f5389a6d1798.tar.xz
Proposed changes for a migration from ConsoleKit2 to elogind
Using elogind will enable a fully working Wayland session for KDE Plasma5.
Diffstat (limited to '')
-rw-r--r--kde/post-install/sddm-qt5.post-install13
-rw-r--r--kde/post-install/sddm-qt5/pam.d/sddm3
-rw-r--r--kde/post-install/sddm-qt5/pam.d/sddm-autologin3
-rw-r--r--kde/post-install/sddm-qt5/pam.d/sddm-greeter1
4 files changed, 18 insertions, 2 deletions
diff --git a/kde/post-install/sddm-qt5.post-install b/kde/post-install/sddm-qt5.post-install
index 006e234..3d168b1 100644
--- a/kde/post-install/sddm-qt5.post-install
+++ b/kde/post-install/sddm-qt5.post-install
@@ -12,6 +12,19 @@ fi
# 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
+
+# Make sure that Plasma and SDDM work on older GPUs,
+# by forcing Qt5 to use software GL rendering:
+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
+
# 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}
diff --git a/kde/post-install/sddm-qt5/pam.d/sddm b/kde/post-install/sddm-qt5/pam.d/sddm
index f0b2345..df016a7 100644
--- a/kde/post-install/sddm-qt5/pam.d/sddm
+++ b/kde/post-install/sddm-qt5/pam.d/sddm
@@ -19,7 +19,8 @@ password substack system-auth
session optional pam_keyinit.so force revoke
session substack system-auth
session required pam_loginuid.so
-session optional pam_ck_connector.so nox11
+-session optional pam_ck_connector.so nox11
+-session optional pam_elogind.so
-session optional pam_gnome_keyring.so auto_start
-session optional pam_kwallet5.so auto_start
session include postlogin
diff --git a/kde/post-install/sddm-qt5/pam.d/sddm-autologin b/kde/post-install/sddm-qt5/pam.d/sddm-autologin
index fd926ef..3602395 100644
--- a/kde/post-install/sddm-qt5/pam.d/sddm-autologin
+++ b/kde/post-install/sddm-qt5/pam.d/sddm-autologin
@@ -17,7 +17,8 @@ password include system-auth
session substack system-auth
session required pam_loginuid.so
-session optional pam_ck_connector.so nox11
+-session optional pam_ck_connector.so nox11
+-session optional pam_elogind.so
-session optional pam_gnome_keyring.so auto_start
-session optional pam_kwallet5.so auto_start
session include postlogin
diff --git a/kde/post-install/sddm-qt5/pam.d/sddm-greeter b/kde/post-install/sddm-qt5/pam.d/sddm-greeter
index c7bd8a3..fe30e60 100644
--- a/kde/post-install/sddm-qt5/pam.d/sddm-greeter
+++ b/kde/post-install/sddm-qt5/pam.d/sddm-greeter
@@ -15,4 +15,5 @@ password required pam_deny.so
# Setup session
session required pam_unix.so
-session optional pam_systemd.so
+-session optional pam_ck_connector.so nox11
-session optional pam_elogind.so