Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(desktop): disable WebKit DMA-BUF renderer on Linux

Richie McIlroya1cc3d2cb734
diff --git a/apps/desktop/src-tauri/src/main.rs b/apps/desktop/src-tauri/src/main.rs
index 0480cbbc7..7b896c771 100644
--- a/apps/desktop/src-tauri/src/main.rs
+++ b/apps/desktop/src-tauri/src/main.rs
@@ -14,6 +14,11 @@ fn main() {
std::env::set_var("RUST_LOG", "trace");
}
+ #[cfg(target_os = "linux")]
+ unsafe {
+ std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");
+ }
+
// We have to hold onto the ClientInitGuard until the very end
let _sentry_guard = std::option_env!("CAP_DESKTOP_SENTRY_URL").map(|url| {
// Crashpad minidump initialization is intentionally disabled. Its process-wide SEH