rustdesk
2022-05-07 22:47:43 +08:00
parent 12ff1e316e
commit 2705228394
4 changed files with 21 additions and 4 deletions

View File

@@ -663,8 +663,12 @@ impl UI {
let p = "explorer";
#[cfg(target_os = "macos")]
let p = "open";
#[cfg(target_os = "linux")]
let p = "xdg-open";
#[cfg(target_os = "linux")]
let p = if std::path::Path::new("/usr/bin/firefox").exists() {
"firefox"
} else {
"xdg-open"
};
allow_err!(std::process::Command::new(p).arg(url).spawn());
}