From bbff28ea2ad0c1d36cef175dbaf1c221925fb965 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Tue, 12 Jan 2021 17:10:00 +0100 Subject: Add Kwayland profile scripts to make Plasma Wayland behave better Implementing LuckyCyborg's proposal from this post: https://www.linuxquestions.org/questions/slackware-14/requests-for-current-14-2-15-0-a-4175620463/page432.html#post6206168 Let's see whether this works. --- make_slackware_live.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 < ${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 < ${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 -- cgit v1.2.3