fix: trying to fix black screen on linux
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
use border::WebviewWindowExt as WebviewWindowExtAlt;
|
use border::WebviewWindowExt as WebviewWindowExtAlt;
|
||||||
use nostr_sdk::prelude::*;
|
use nostr_sdk::prelude::*;
|
||||||
use specta_typescript::Typescript;
|
use specta_typescript::Typescript;
|
||||||
|
use std::env;
|
||||||
use std::{
|
use std::{
|
||||||
collections::HashMap,
|
collections::HashMap,
|
||||||
fs,
|
fs,
|
||||||
@@ -27,6 +28,9 @@ pub struct Nostr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1");
|
||||||
|
|
||||||
let builder = Builder::<tauri::Wry>::new().commands(collect_commands![
|
let builder = Builder::<tauri::Wry>::new().commands(collect_commands![
|
||||||
get_bootstrap_relays,
|
get_bootstrap_relays,
|
||||||
set_bootstrap_relays,
|
set_bootstrap_relays,
|
||||||
|
|||||||
Reference in New Issue
Block a user