diff options
author | Eric Hameleers <alien@slackware.com> | 2021-01-12 17:10:00 +0100 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2021-01-12 17:10:00 +0100 |
commit | bbff28ea2ad0c1d36cef175dbaf1c221925fb965 (patch) | |
tree | c046722980378f83da60acd2e7402d3e83a086c2 | |
parent | 7957f02d897c09b598558674bad38c48091c3ebd (diff) | |
download | liveslak-bbff28ea2ad0c1d36cef175dbaf1c221925fb965.tar.gz liveslak-bbff28ea2ad0c1d36cef175dbaf1c221925fb965.tar.xz |
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.
Diffstat (limited to '')
-rwxr-xr-x | make_slackware_live.sh | 18 |
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 |