Add run script to launch the application with WebKit DMA-BUF disabled
This commit is contained in:
parent
4865bc066f
commit
8bc60e414e
1 changed files with 13 additions and 0 deletions
13
src-tauri/scripts/run.sh
Executable file
13
src-tauri/scripts/run.sh
Executable file
|
@ -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 "$@"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue