Skip to content

armgit / Handy

Public Imported from GitHub
0

A free, open source, and extensible speech-to-text application that works completely offline.

Set WEBKIT_DISABLE_DMABUF_RENDERER=1 in env (#427)

CJ Paise8902ee33e76
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index b37a9037..9da82776 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -2,5 +2,15 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
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");
+ }
+ }
+
handy_app_lib::run()
}