add new service install tip in Chinese

This commit is contained in:
chenbaiyu
2022-01-14 18:28:39 +08:00
parent d5286782cd
commit d0ca9de946
7 changed files with 7 additions and 5 deletions

View File

@@ -154,7 +154,7 @@ pub fn is_installed_daemon(prompt: bool) -> bool {
Err(e) => {
log::error!("run osascript failed: {}", e);
false
},
}
}
}

View File

@@ -14,6 +14,6 @@ on run {daemon_file, root_agent_file, user_agent_file}
set sh to sh1 & sh2 & sh3 & sh4 & sh5
do shell script sh with prompt "RustDesk 需要安装服务" with administrator privileges
do shell script sh with prompt "RustDesk want to install services" with administrator privileges
do shell script sh6
end run

View File

@@ -2,6 +2,6 @@ set sh1 to "launchctl load -w /Library/LaunchAgents/com.carriez.rustdesk.agent.r
set sh2 to "launchctl load -w /Library/LaunchAgents/com.carriez.rustdesk.agent.user.plist;"
do shell script sh1 with prompt "RustDesk 需要停止服务" with administrator privileges
do shell script sh1 with prompt "RustDesk want to launch services" with administrator privileges
do shell script sh2

View File

@@ -2,6 +2,6 @@ set sh1 to "launchctl unload -w /Library/LaunchAgents/com.carriez.rustdesk.agent
set sh2 to "launchctl unload -w /Library/LaunchAgents/com.carriez.rustdesk.agent.user.plist;"
do shell script sh1 with prompt "RustDesk 需要停止服务" with administrator privileges
do shell script sh1 with prompt "RustDesk want to stop services" with administrator privileges
do shell script sh2