From eafc74a91e8ac15f047af7d19390dfaa625e1ff8 Mon Sep 17 00:00:00 2001 From: suuuehgi <7861774+suuuehgi@users.noreply.github.com> Date: Wed, 11 Feb 2026 13:24:30 +0100 Subject: [PATCH] fix: Apply DMABUF workaround on all Linux systems (#789) The previous implementation only applied the workaround on X11 sessions, leaving Wayland users affected by WebkitGTK DMABUF crashes. This affects various GPU configurations (at least Intel and NVIDIA) on both X11 and Wayland. This change applies the workaround unconditionally on Linux, ensuring the app doesn't crash on affected systems while having minimal performance impact. Related: https://github.com/tauri-apps/tauri/issues/9394 Co-authored-by: suuuehgi <> --- src-tauri/src/main.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 9da8277..2175d34 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -4,12 +4,9 @@ fn main() { #[cfg(target_os = "linux")] { - if std::path::Path::new("/dev/dri").exists() - && std::env::var("WAYLAND_DISPLAY").is_err() - && std::env::var("XDG_SESSION_TYPE").unwrap_or_default() == "x11" - { - std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1"); - } + // DMABUF renderer causes crashes on various GPU/display server configurations + // See: https://github.com/tauri-apps/tauri/issues/9394 + std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1"); } handy_app_lib::run()