From e47d815dd27526a04e54c212161152ba5a2a8dee Mon Sep 17 00:00:00 2001 From: Zoltan Papp Date: Mon, 1 Dec 2025 14:16:03 +0100 Subject: [PATCH] Fix IsAnotherProcessRunning (#4858) Compare the exact process name rather than searching for a substring of the full path --- client/ui/process/process.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/ui/process/process.go b/client/ui/process/process.go index d0ef54896..28276f416 100644 --- a/client/ui/process/process.go +++ b/client/ui/process/process.go @@ -28,7 +28,8 @@ func IsAnotherProcessRunning() (int32, bool, error) { continue } - if strings.Contains(strings.ToLower(runningProcessPath), processName) && isProcessOwnedByCurrentUser(p) { + runningProcessName := strings.ToLower(filepath.Base(runningProcessPath)) + if runningProcessName == processName && isProcessOwnedByCurrentUser(p) { return p.Pid, true, nil } }