diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-12-03 17:17:48 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-03 17:17:48 -0500 |
| commit | 70a73984b8de5e7880f9accff60fe9fac5a664d7 (patch) | |
| tree | 2dd77535d4450f91bac63903906d4aca8964beec /Emby.Server.Implementations/EntryPoints/StartupWizard.cs | |
| parent | defc35aedc703741239f71e161f8008caba8b746 (diff) | |
| parent | 4ec4d38f49f6e6d64b7de190e44e9729291f6837 (diff) | |
Merge pull request #3051 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/EntryPoints/StartupWizard.cs')
| -rw-r--r-- | Emby.Server.Implementations/EntryPoints/StartupWizard.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/EntryPoints/StartupWizard.cs b/Emby.Server.Implementations/EntryPoints/StartupWizard.cs index 746edf9e7..103b4b321 100644 --- a/Emby.Server.Implementations/EntryPoints/StartupWizard.cs +++ b/Emby.Server.Implementations/EntryPoints/StartupWizard.cs @@ -35,15 +35,20 @@ namespace Emby.Server.Implementations.EntryPoints /// </summary> public void Run() { + if (!_appHost.CanLaunchWebBrowser) + { + return; + } + if (_appHost.IsFirstRun) { BrowserLauncher.OpenDashboardPage("wizardstart.html", _appHost); } - else if (_config.Configuration.IsStartupWizardCompleted) + else if (_config.Configuration.IsStartupWizardCompleted && _config.Configuration.AutoRunWebApp) { var options = ((ApplicationHost)_appHost).StartupOptions; - if (!options.ContainsOption("-service") && !options.ContainsOption("-nobrowser")) + if (!options.ContainsOption("-noautorunwebapp")) { BrowserLauncher.OpenDashboardPage("index.html", _appHost); } |
