From 5978ebb9b0a95bc35616d963dd2e3f7237f0d099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sat, 30 Sep 2023 12:29:08 +0200 Subject: [PATCH] fix: :bug: blank screen on linux --- src-tauri/src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 5a880c1..6bc5468 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -1,9 +1,8 @@ // Prevents additional console window on Windows in release, DO NOT REMOVE!! #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] -use std::collections::HashSet; - use id3::{Tag, TagLike}; use serde::Serialize; +use std::collections::HashSet; use walkdir::WalkDir; #[derive(Debug, Serialize, PartialEq, Eq, Hash)] @@ -41,6 +40,9 @@ async fn get_local_albums(dirpath: String) -> Result, String> { } fn main() { + // https://github.com/tauri-apps/tauri/issues/5143#issuecomment-1311815517 + std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1"); + tauri::Builder::default() .invoke_handler(tauri::generate_handler![get_local_albums]) .run(tauri::generate_context!())