MaxXor 2020-06-01 22:24:08 +02:00
parent b0c54af1a0
commit 77aa6aa386
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
namespace Quasar.Client.Utilities
{
/// <summary>
/// A system-wide mutex that ensures that only one instance runs at a time.
/// A user-wide mutex that ensures that only one instance runs at a time.
/// </summary>
public class SingleInstanceMutex : IDisposable
{
@ -29,7 +29,7 @@ public class SingleInstanceMutex : IDisposable
/// <param name="name">The name of the mutex.</param>
public SingleInstanceMutex(string name)
{
_appMutex = new Mutex(false, name, out var createdNew);
_appMutex = new Mutex(false, $"Local\\{name}", out var createdNew);
CreatedNew = createdNew;
}