[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:
3 files changed
+11
-2
No files matched your search
@@ -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"
|
||||
Reference in new issue
Block a user