install-service/uninstall-service

This commit is contained in:
rustdesk
2023-07-27 16:49:19 +08:00
parent 0e1e8d2b16
commit 4d7a6dd661
2 changed files with 11 additions and 0 deletions

View File

@@ -132,6 +132,10 @@ pub fn is_can_screen_recording(prompt: bool) -> bool {
can_record_screen
}
pub fn install_service() -> bool {
is_installed_daemon(false)
}
pub fn is_installed_daemon(prompt: bool) -> bool {
let daemon = format!("{}_service.plist", crate::get_full_name());
let agent = format!("{}_server.plist", crate::get_full_name());