remove more "rustdesk" built-in

This commit is contained in:
rustdesk
2024-02-25 13:29:06 +08:00
parent 9ff1dfe019
commit a28c9f8f36
15 changed files with 66 additions and 50 deletions

View File

@@ -91,14 +91,14 @@ pub fn make_tray() -> hbb_common::ResultType<()> {
use std::process::Command;
Command::new("cmd")
.arg("/c")
.arg("start rustdesk://")
.arg(&format!("start {}", crate::get_uri_prefix()))
.creation_flags(winapi::um::winbase::CREATE_NO_WINDOW)
.spawn()
.ok();
}
#[cfg(target_os = "linux")]
if !std::process::Command::new("xdg-open")
.arg("rustdesk://")
.arg(&crate::get_uri_prefix())
.spawn()
.is_ok()
{