chore: replace sudo with pkexec execution

This commit is contained in:
huzibaca
2024-10-21 02:31:43 +08:00
parent 90091db3b1
commit babf5d840c
2 changed files with 1 additions and 2 deletions

View File

@@ -103,7 +103,6 @@ pub async fn reinstall_service() -> Result<()> {
};
log::info!(target:"app", "status code:{}", status.code().unwrap());
let elevator = crate::utils::help::linux_elevator();
let status = match get_effective_uid() {
0 => StdCommand::new(install_shell).status()?,
_ => StdCommand::new(elevator)