mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-18 16:41:36 -07:00
Fix watcher launching
This commit is contained in:
parent
049d59a995
commit
cab047d7a9
@ -389,8 +389,10 @@ namespace Bloxstrap
|
||||
if (autoclosePids.Any())
|
||||
args += $";{String.Join(',', autoclosePids)}";
|
||||
|
||||
using (var ipl = new InterProcessLock("Watcher"))
|
||||
if (App.Settings.Prop.EnableActivityTracking || autoclosePids.Any())
|
||||
{
|
||||
using var ipl = new InterProcessLock("Watcher");
|
||||
|
||||
if (ipl.IsAcquired)
|
||||
Process.Start(Paths.Process, $"-watcher \"{args}\"");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user