Skip to content

Commit fc5bf0f

Browse files
committed
Fix linux graphical issues
1 parent 4a62471 commit fc5bf0f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src-tauri/src/main.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ use tokio::sync::Mutex;
4646
use windows::{has_wsl, install_wsl, is_windows};
4747

4848
fn main() {
49+
#[cfg(target_os = "linux")]
50+
{
51+
use std::env;
52+
if env::var_os("__NV_DISABLE_EXPLICIT_SYNC").is_none() {
53+
env::set_var("__NV_DISABLE_EXPLICIT_SYNC", "1");
54+
}
55+
}
56+
4957
let syslog_stream: SyslogStream = SyslogStream(Arc::new(Mutex::new(None)));
5058
let stdout_stream: StdoutStream = Arc::new(Mutex::new(None));
5159

0 commit comments

Comments
 (0)