From 360f4e5cbd5bf66c0be99894c5239037b428605d Mon Sep 17 00:00:00 2001 From: MrAnks Date: Fri, 7 Nov 2014 15:31:21 +0000 Subject: [PATCH 1/2] Update MainStartup.cs Hide the start up splash screen if nosplash is given as a command line parameter. --- MediaBrowser.ServerApplication/MainStartup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.ServerApplication/MainStartup.cs b/MediaBrowser.ServerApplication/MainStartup.cs index c47dc2155c..1cbe8676c5 100644 --- a/MediaBrowser.ServerApplication/MainStartup.cs +++ b/MediaBrowser.ServerApplication/MainStartup.cs @@ -224,7 +224,7 @@ namespace MediaBrowser.ServerApplication if (!runService) { - ShowSplashScreen(_appHost.ApplicationVersion, initProgress, logManager.GetLogger("Splash")); + if (!options.ContainsOption("nosplash")) ShowSplashScreen(_appHost.ApplicationVersion, initProgress, logManager.GetLogger("Splash")); // Not crazy about this but it's the only way to suppress ffmpeg crash dialog boxes SetErrorMode(ErrorModes.SEM_FAILCRITICALERRORS | ErrorModes.SEM_NOALIGNMENTFAULTEXCEPT | From 3d76afc1ec0322a955cf30fda358d4fff12c46e6 Mon Sep 17 00:00:00 2001 From: MrAnks Date: Fri, 7 Nov 2014 15:38:04 +0000 Subject: [PATCH 2/2] Update MainStartup.cs Updated based on feedback. Best to keep everything consistent. --- MediaBrowser.ServerApplication/MainStartup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.ServerApplication/MainStartup.cs b/MediaBrowser.ServerApplication/MainStartup.cs index 1cbe8676c5..e6cea54632 100644 --- a/MediaBrowser.ServerApplication/MainStartup.cs +++ b/MediaBrowser.ServerApplication/MainStartup.cs @@ -224,7 +224,7 @@ namespace MediaBrowser.ServerApplication if (!runService) { - if (!options.ContainsOption("nosplash")) ShowSplashScreen(_appHost.ApplicationVersion, initProgress, logManager.GetLogger("Splash")); + if (!options.ContainsOption("-nosplash")) ShowSplashScreen(_appHost.ApplicationVersion, initProgress, logManager.GetLogger("Splash")); // Not crazy about this but it's the only way to suppress ffmpeg crash dialog boxes SetErrorMode(ErrorModes.SEM_FAILCRITICALERRORS | ErrorModes.SEM_NOALIGNMENTFAULTEXCEPT |