[170] Linux/Wayland: Electron über XWayland starten (--ozone-platform=x11), sonst bricht Chromiums Vulkan/WebGPU ab und das Fenster schliesst sofort; DOSSIER_OZONE übersteuert

This commit is contained in:
Claude committed 2026-11-13 01:39:59 +00:00
1 parent ce6d6e3716
commit 0bfe08ec41
3 files changed
+11 -2

No files matched your search

+4 -1
View File
@@ -47,4 +47,7 @@ cleanup() {
trap cleanup EXIT
echo "electron-shell: öffne Electron-Fenster …"
npx electron "$(dirname "$0")/electron-main.cjs"
# Unter Wayland: Chromiums Vulkan (WebGPU) läuft nur über XWayland (`--ozone-platform=x11`); DOSSIER_OZONE übersteuert.
OZONE="${DOSSIER_OZONE:-}"
if [ -z "$OZONE" ] && { [ -n "${WAYLAND_DISPLAY:-}" ] || [ "${XDG_SESSION_TYPE:-}" = "wayland" ]; }; then OZONE=x11; fi
npx electron ${OZONE:+--ozone-platform=$OZONE} "$(dirname "$0")/electron-main.cjs"