From 89db09a4e6f3a89ad8f991abd541dae7fe9832ee Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Mon, 18 May 2026 22:08:46 +0100 Subject: [PATCH] Fix Linux crash --- frontend/src-tauri/src/lib.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/src-tauri/src/lib.rs b/frontend/src-tauri/src/lib.rs index 08986b2d37..d129a3c8e2 100644 --- a/frontend/src-tauri/src/lib.rs +++ b/frontend/src-tauri/src/lib.rs @@ -49,6 +49,18 @@ fn dispatch_deep_link(app: &AppHandle, url: &str) { #[cfg_attr(mobile, tauri::mobile_entry_point)] pub fn run() { + #[cfg(target_os = "linux")] + { + use std::env; + // WebKitGTK >= 2.46 DMA-BUF renderer SIGABRTs on KDE 6 + Mesa/NVIDIA; disable unless user opted in. + if env::var_os("WEBKIT_DISABLE_DMABUF_RENDERER").is_none() { + env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1"); + } + if env::var_os("WEBKIT_DISABLE_COMPOSITING_MODE").is_none() { + env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1"); + } + } + tauri::Builder::default() .plugin( tauri_plugin_log::Builder::new()