From 8bc60e414e4900098a865164e7293b6700d8c7b8 Mon Sep 17 00:00:00 2001 From: Jordon Brooks Date: Sun, 22 Jun 2025 15:10:23 +0100 Subject: [PATCH] Add run script to launch the application with WebKit DMA-BUF disabled --- src-tauri/scripts/run.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 src-tauri/scripts/run.sh diff --git a/src-tauri/scripts/run.sh b/src-tauri/scripts/run.sh new file mode 100755 index 0000000..6b70c52 --- /dev/null +++ b/src-tauri/scripts/run.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Disable WebKit’s DMA-BUF path to avoid GBM/Wayland errors +export WEBKIT_DISABLE_DMABUF_RENDERER=1 + +# (Optional) force Wayland or X11 if you ever need it: +# export GDK_BACKEND=wayland +# export GDK_BACKEND=x11 + +# Launch your app +exec cargo run "$@" +