From 10c418284241c5e17cf514cd37cccd1e1dd2d4e7 Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Sun, 18 Jan 2026 11:48:31 +0800 Subject: [PATCH] Revert "fix: set GID environment variable during service installation on Linux" This reverts commit 373aec579b6d9983ee151be55b69eee0284e4154. --- src-tauri/src/core/service.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src-tauri/src/core/service.rs b/src-tauri/src/core/service.rs index 7f1766bd7..df07e83d4 100644 --- a/src-tauri/src/core/service.rs +++ b/src-tauri/src/core/service.rs @@ -158,16 +158,12 @@ fn install_service() -> Result<()> { } let install_shell: String = install_path.to_string_lossy().replace(" ", "\\ "); - let gid = tauri_plugin_clash_verge_sysinfo::current_gid(); let elevator = crate::utils::help::linux_elevator(); let status = if linux_running_as_root() { - StdCommand::new(&install_path) - .env("CLASH_VERGE_SERVICE_GID", gid.to_string()) - .status()? + StdCommand::new(&install_path).status()? } else { let result = StdCommand::new(&elevator) - .env("CLASH_VERGE_SERVICE_GID", gid.to_string()) .arg("sh") .arg("-c") .arg(&install_shell)