Skip to content

Commit

Permalink
open uni on tray instead, though double click not work on stupid tauri
Browse files Browse the repository at this point in the history
tray-icon
  • Loading branch information
rustdesk committed Jun 5, 2023
1 parent 12fc280 commit 77c9341
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/tray.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,16 @@ pub fn make_tray() -> hbb_common::ResultType<()> {
#[cfg(target_os = "macos")]
crate::platform::macos::handle_application_should_open_untitled_file();
#[cfg(target_os = "windows")]
crate::run_me(Vec::<&str>::new()).ok();
{
use std::os::windows::process::CommandExt;
use std::process::Command;
Command::new("cmd")
.arg("/c")
.arg("start rustdesk://")
.creation_flags(winapi::um::winbase::CREATE_NO_WINDOW)
.spawn()
.ok();
}
}
}
});
Expand Down

0 comments on commit 77c9341

Please sign in to comment.