summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmake_slackware_live.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 067fab6..7138a82 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -2381,6 +2381,24 @@ text/html=kwebkitpart.desktop;
EOT
fi
+ # Requirement for Plasma Wayland sessions:
+ mkdir -p ${LIVE_ROOTDIR}/etc/profile.d
+ cat <<EOT > ${LIVE_ROOTDIR}/etc/profile.d/kwayland.sh
+#!/bin/sh
+# Force the usage of XCB platform on Qt5 applications:
+export QT_QPA_PLATFORM=xcb
+# Force the usage of X11 platform for GDK applications:
+export GDK_BACKEND=x11
+EOT
+ cat <<EOT > ${LIVE_ROOTDIR}/etc/profile.d/kwayland.csh
+#!/bin/csh
+# Force the usage of XCB platform on Qt5 applications:
+setenv QT_QPA_PLATFORM xcb
+# Force the usage of X11 platform for GDK applications:
+setenv GDK_BACKEND x11
+EOT
+ chmod 755 ${LIVE_ROOTDIR}/etc/profile.d/kwayland.*
+
fi # End Plasma5
if [ "$LIVEDE" = "DLACK" ]; then