fix: trying to fix black screen on linux

This commit is contained in:
reya
2024-08-06 13:04:21 +07:00
parent f77b75b8d5
commit 7c04f9cf2b

View File

@@ -5,6 +5,7 @@
use border::WebviewWindowExt as WebviewWindowExtAlt;
use nostr_sdk::prelude::*;
use specta_typescript::Typescript;
use std::env;
use std::{
collections::HashMap,
fs,
@@ -27,6 +28,9 @@ pub struct Nostr {
}
fn main() {
#[cfg(target_os = "linux")]
std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1");
let builder = Builder::<tauri::Wry>::new().commands(collect_commands![
get_bootstrap_relays,
set_bootstrap_relays,