[170] Linux: unter Wayland nativ starten (ozone wayland, GPU-Modus minimal) statt XWayland — kein schwarzer Rand in runden Fensterecken

This commit is contained in:
Claude committed 2026-11-13 01:59:20 +00:00
1 parent 398a2f70fa
commit 8698cca4fa
3 files changed
+13 -12

No files matched your search

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