diff --git a/Artemis/Artemis/ArtemisBootstrapper.cs b/Artemis/Artemis/ArtemisBootstrapper.cs index e0f82e4b6..f3892e34f 100644 --- a/Artemis/Artemis/ArtemisBootstrapper.cs +++ b/Artemis/Artemis/ArtemisBootstrapper.cs @@ -1,9 +1,8 @@ using System.Diagnostics; using System.Linq; +using System.Reflection; using System.Windows; using System.Windows.Forms; -using Artemis.Utilities; -using Artemis.Utilities.LogitechDll; using Artemis.ViewModels; using Autofac; using Caliburn.Micro; @@ -39,8 +38,8 @@ namespace Artemis private void CheckDuplicateInstances() { - var processes = Process.GetProcesses(); - if (processes.Count(p => p.ProcessName == "Artemis") < 2) + if (Process.GetProcesses().Count(p => p.ProcessName.Contains(Assembly.GetExecutingAssembly() + .FullName.Split(',')[0]) && !p.Modules[0].FileName.Contains("vshost")) < 2) return; MessageBox.Show("An instance of Artemis is already running (check your system tray).",