From 0883864d3932648c2d8d584111ffe5bc951142d8 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Fri, 9 Jun 2023 13:42:37 +0800 Subject: [PATCH] avoid write conflcit --- src/platform/linux.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/linux.rs b/src/platform/linux.rs index 65e8d4226..0981b674d 100644 --- a/src/platform/linux.rs +++ b/src/platform/linux.rs @@ -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;