fix: kded6 offscreen wrapper — belt-and-suspenders for Qt6 Wayland crash

- D-Bus service Exec=/usr/bin/env QT_QPA_PLATFORM=offscreen /usr/bin/kded6
- kded6-offscreen wrapper script for direct launches
- Works regardless of whether #ifdef Q_OS_REDOX is defined during build

This is the most reliable approach: process-level environment override
bypasses all compilation issues, #ifdef guard issues, and build chain
caching problems.
This commit is contained in:
2026-05-06 15:52:21 +01:00
parent 7754990727
commit 0a034fa79b
2 changed files with 5 additions and 3 deletions
@@ -0,0 +1,3 @@
#!/bin/sh
export QT_QPA_PLATFORM=offscreen
exec /usr/bin/kded6 "$@"
@@ -1,6 +1,5 @@
[D-BUS Service] [D-BUS Service]
Name=org.kde.kded6 Name=org.kde.kded6
# Use 'env' to set QT_QPA_PLATFORM — the Environment= key may not be # Use env to force offscreen QPA. kded6 is a headless D-Bus daemon.
# supported by all D-Bus daemons. kded6 is headless; offscreen prevents # Qt6 Wayland crashes at null+8 during wl_registry init on Redox.
# the Qt6 Wayland QPA crash (page fault at null+8 during wl_registry init).
Exec=/usr/bin/env QT_QPA_PLATFORM=offscreen /usr/bin/kded6 Exec=/usr/bin/env QT_QPA_PLATFORM=offscreen /usr/bin/kded6