Update src-tauri/src/main.rs

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
failerko 2026-01-18 15:59:41 +01:00 committed by GitHub
parent f7ffdb65b9
commit 7f63700352
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,7 +2,8 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
// Fix for "Failed to create GBM buffer" error on some Linux environments
// Workaround for "Failed to create GBM buffer" on Linux (e.g. Wayland/NVIDIA).
// This disables the DMA-BUF renderer, forcing a more compatible fallback.
#[cfg(target_os = "linux")]
std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");