diff --git a/Ninjacrab.PersistentWindows.Solution/Ninjacrab.PersistentWindows.SystrayShell/Program.cs b/Ninjacrab.PersistentWindows.Solution/Ninjacrab.PersistentWindows.SystrayShell/Program.cs index 2844d4e..8a7b72a 100644 --- a/Ninjacrab.PersistentWindows.Solution/Ninjacrab.PersistentWindows.SystrayShell/Program.cs +++ b/Ninjacrab.PersistentWindows.Solution/Ninjacrab.PersistentWindows.SystrayShell/Program.cs @@ -12,8 +12,19 @@ namespace Ninjacrab.PersistentWindows.SystrayShell /// static PersistentWindowProcessor pwp; [STAThread] - static void Main() + static void Main(string[] args) { + bool no_splash = false; + foreach (var arg in args) + { + switch(arg) + { + case "-silent": + no_splash = true; + break; + } + } + #if (!DEBUG) Mutex singleInstMutex = new Mutex(true, Application.ProductName); if (!singleInstMutex.WaitOne(TimeSpan.Zero, true)) @@ -31,7 +42,10 @@ namespace Ninjacrab.PersistentWindows.SystrayShell pwp = new PersistentWindowProcessor(); pwp.Start(); - StartSplashForm(); + if (!no_splash) + { + StartSplashForm(); + } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false);