mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-14 12:07:35 +00:00
fix macos stop service on gui not restart
This commit is contained in:
@@ -258,12 +258,9 @@ pub fn uninstall_service(show_new_window: bool, sync: bool) -> bool {
|
|||||||
.status()
|
.status()
|
||||||
.ok();
|
.ok();
|
||||||
if show_new_window {
|
if show_new_window {
|
||||||
std::process::Command::new("sh")
|
std::process::Command::new("open")
|
||||||
.arg("-c")
|
.arg("-n")
|
||||||
.arg(&format!(
|
.arg(&format!("/Applications/{}.app", crate::get_app_name()))
|
||||||
"sleep 0.5; open /Applications/{}.app",
|
|
||||||
crate::get_app_name(),
|
|
||||||
))
|
|
||||||
.spawn()
|
.spawn()
|
||||||
.ok();
|
.ok();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user