From f7803d4964a4dce031bb9f30574d66f0cea07047 Mon Sep 17 00:00:00 2001 From: thelamer Date: Thu, 1 Jan 2026 14:46:30 -0500 Subject: [PATCH] add native wayland kde support --- Dockerfile | 1 + Dockerfile.aarch64 | 1 + root/defaults/startwm_wayland.sh | 22 ++++++++++++++++++++-- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b33fe192..9a11c8e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,6 +20,7 @@ RUN \ breeze-icon-theme \ chromium \ dolphin \ + firefox \ kde-gtk-config \ kde-settings-pulseaudio \ kde-wallpapers \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index fd22058e..08ae34c5 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -20,6 +20,7 @@ RUN \ breeze-icon-theme \ chromium \ dolphin \ + firefox \ kde-gtk-config \ kde-settings-pulseaudio \ kde-wallpapers \ diff --git a/root/defaults/startwm_wayland.sh b/root/defaults/startwm_wayland.sh index 98224e1d..c43d0071 100755 --- a/root/defaults/startwm_wayland.sh +++ b/root/defaults/startwm_wayland.sh @@ -45,7 +45,25 @@ if [ ! -f "${STARTUP_FILE}" ]; then chmod +x $STARTUP_FILE fi +# Setup application DB +sudo mv \ + /etc/xdg/menus/plasma-applications.menu \ + /etc/xdg/menus/applications.menu +kbuildsycoca6 + +# Wayland Hacks +unset DISPLAY +sudo setcap -r /usr/sbin/kwin_wayland +sudo rm -f /usr/bin/wl-paste /usr/bin/wl-copy +echo "#! /bin/bash" > /tmp/wl-paste && chmod +x /tmp/wl-paste +echo "#! /bin/bash" > /tmp/wl-copy && chmod +x /tmp/wl-copy +sudo cp /tmp/wl-* /usr/bin/ +if ! grep -q "ozone-platform" /usr/local/bin/wrapped-chromium > /dev/null 2>&1; then + sudo sed -i 's/--password/--ozone-platform=wayland --password/g' /usr/local/bin/wrapped-chromium +fi +sudo rm -f /usr/share/applications/chromium-browser.desktop + # Start DE -WAYLAND_DISPLAY=wayland-1 Xwayland :1 & +WAYLAND_DISPLAY=wayland-1 dbus-run-session kwin_wayland & sleep 2 -exec dbus-launch --exit-with-session /usr/bin/startplasma-x11 > /dev/null 2>&1 +WAYLAND_DISPLAY=wayland-0 exec dbus-run-session /usr/bin/plasmashell > /dev/null 2>&1