From 46eea44db6c9e3a142f808b4aae86a31fbc51b4b Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Sun, 18 Oct 2026 16:17:00 -0500 Subject: set Mutex options to regain pre 10.0.13 behavior --- src/slskd/Program.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/slskd/Program.cs') diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index 75e9e9da..e236886b 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -382,7 +382,11 @@ namespace slskd // only one long-running instance. try { - Mutex = new Mutex(initiallyOwned: true, Compute.Sha256Hash(AppName), out bool created); + Mutex = new Mutex( + initiallyOwned: true, + name: Compute.Sha256Hash(AppName), + options: new NamedWaitHandleOptions { CurrentUserOnly = false, CurrentSessionOnly = true }, + out bool created); if (!created) { -- cgit v1.2.3