Skip to content

Commit a857fb0

Browse files
add WEBKIT_DISABLE_DMABUF_RENDERER for wayland
1 parent bae3788 commit a857fb0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src-tauri/src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ use tauri::Manager;
2121
/// - Failed to apply window effects
2222
/// - Failed to initialize the application state
2323
fn main() {
24+
#[cfg(target_os = "linux")]
25+
if std::env::var("XDG_SESSION_TYPE").unwrap_or_default() == "wayland" {
26+
std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");
27+
}
28+
2429
tauri::Builder::default()
2530
.setup(|app| {
2631
let window = app.get_webview_window("main").unwrap();

0 commit comments

Comments
 (0)