From f9c39953f05862a070526edad9fe79003fbdcc85 Mon Sep 17 00:00:00 2001 From: Haapy Date: Thu, 14 May 2026 23:34:57 +0000 Subject: [PATCH] fixing' --- src-tauri/src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 8b9c677..a0f9518 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -15,6 +15,15 @@ pub fn run() { #[cfg(target_os = "linux")] { std::env::set_var("GDK_BACKEND", "x11"); + // webkit2gtk's hardware compositor fails in VMs / on systems without a + // real GPU and the window goes grey. Falling back to software rendering + // here keeps the app usable everywhere. + if std::env::var_os("WEBKIT_DISABLE_COMPOSITING_MODE").is_none() { + std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1"); + } + if std::env::var_os("WEBKIT_DISABLE_DMABUF_RENDERER").is_none() { + std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1"); + } } tauri::Builder::default()