mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-05 08:37:15 +00:00
sync config if enable mac service
This commit is contained in:
1 parent
5af1258454
commit
e0637f966a
2 files changed
+16
-5
No files matched your search
@@ -131,7 +131,7 @@ pub fn is_installed_daemon(prompt: bool) -> bool {
|
||||
.arg(&get_active_username())
|
||||
.spawn()
|
||||
{
|
||||
Ok(mut proc) => {
|
||||
Ok(_) => {
|
||||
std::process::exit(0);
|
||||
}
|
||||
Err(e) => {
|
||||
@@ -157,6 +157,7 @@ pub fn launch(load: bool) {
|
||||
std::process::Command::new("osascript")
|
||||
.arg("-e")
|
||||
.arg(script_body)
|
||||
.arg(&get_active_username())
|
||||
.spawn()
|
||||
.ok();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user