This commit is contained in:
Haapy
2026-05-14 23:34:57 +00:00
parent 72c2afb1a4
commit f9c39953f0

View File

@@ -15,6 +15,15 @@ pub fn run() {
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
{ {
std::env::set_var("GDK_BACKEND", "x11"); 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() tauri::Builder::default()