Skip to content

The Free Software Media System - Server Backend & API

Merge branch 'master' into register-services-correctly

Bond-009d744d7d23492
diff --cc Emby.Server.Implementations/EntryPoints/StartupWizard.cs
index af1604aa6e,a0a653d753..2e738deeb5
--- a/Emby.Server.Implementations/EntryPoints/StartupWizard.cs
+++ b/Emby.Server.Implementations/EntryPoints/StartupWizard.cs
@@@ -42,14 -40,25 +48,24 @@@ namespace Emby.Server.Implementations.E
{
if (!_appHost.CanLaunchWebBrowser)
{
- return Task.CompletedTask;
+ return;
}
- if (!_appConfig.HostWebClient())
+ // Always launch the startup wizard if possible when it has not been completed
+ if (!_config.Configuration.IsStartupWizardCompleted && _appConfig.HostWebClient())
{
- BrowserLauncher.OpenSwaggerPage(_appHost);
+ BrowserLauncher.OpenWebApp(_appHost);
+ return;
}
- else if (!_config.Configuration.IsStartupWizardCompleted)
+
+ // Do nothing if the web app is configured to not run automatically
- var options = ((ApplicationHost)_appHost).StartupOptions;
- if (!_config.Configuration.AutoRunWebApp || options.NoAutoRunWebApp)
++ if (!_config.Configuration.AutoRunWebApp || _startupOptions.NoAutoRunWebApp)
+ {
+ return;
+ }
+
+ // Launch the swagger page if the web client is not hosted, otherwise open the web client
+ if (_appConfig.HostWebClient())
{
BrowserLauncher.OpenWebApp(_appHost);
}