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;