Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

fix: disable WebKit compositing mode by default on Linux to fix blank screen on Wayland without GPU

Tw93cb911ec7da89
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 62441120..1fc4cf75 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -27,6 +27,9 @@ pub fn run_app() {
if std::env::var("WEBKIT_DISABLE_DMABUF_RENDERER").is_err() {
std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");
}
+ if std::env::var("WEBKIT_DISABLE_COMPOSITING_MODE").is_err() {
+ std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1");
+ }
}
let (pake_config, tauri_config) = get_pake_config();