avoid write conflcit

This commit is contained in:
rustdesk 2023-06-09 13:42:37 +08:00
parent 22a5399588
commit 0883864d39

View File

@ -1136,7 +1136,7 @@ pub fn uninstall_service(show_new_window: bool) -> bool {
log::info!("Uninstalling service...");
let cp = switch_service(true);
if !run_cmds_pkexec(&format!(
"{cp} systemctl disable rustdesk; systemctl stop rustdesk"
"systemctl disable rustdesk; systemctl stop rustdesk; {cp}"
)) {
Config::set_option("stop-service".into(), "".into());
return true;