From bb82b3a5b0067cec624cab255141c44c964a9636 Mon Sep 17 00:00:00 2001 From: starrain Date: Mon, 1 Dec 2025 01:12:08 +0800 Subject: [PATCH] fix(elevate): fix panic on NixOS (#1634) --- easytier-gui/src-tauri/src/elevate/linux.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/easytier-gui/src-tauri/src/elevate/linux.rs b/easytier-gui/src-tauri/src/elevate/linux.rs index 346e2cfb..5199c15d 100644 --- a/easytier-gui/src-tauri/src/elevate/linux.rs +++ b/easytier-gui/src-tauri/src/elevate/linux.rs @@ -24,8 +24,7 @@ impl Command { /// Prompting the user with a graphical OS dialog for the root password, /// excuting the command with escalated privileges, and return the output pub fn output(&self) -> Result { - let pkexec = PathBuf::from_str("/bin/pkexec")?; - let mut command = StdCommand::new(pkexec); + let mut command = StdCommand::new("pkexec"); let display = env::var("DISPLAY"); let xauthority = env::var("XAUTHORITY"); let home = env::var("HOME");