|
|
@ -187,23 +187,9 @@ namespace Emby.Server.Implementations
|
|
|
|
|
|
|
|
|
|
|
|
public bool CoreStartupHasCompleted { get; private set; }
|
|
|
|
public bool CoreStartupHasCompleted { get; private set; }
|
|
|
|
|
|
|
|
|
|
|
|
public virtual bool CanLaunchWebBrowser
|
|
|
|
public virtual bool CanLaunchWebBrowser => Environment.UserInteractive
|
|
|
|
{
|
|
|
|
&& !_startupOptions.IsService
|
|
|
|
get
|
|
|
|
&& (OperatingSystem.IsWindows() || OperatingSystem.IsMacOS());
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!Environment.UserInteractive)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_startupOptions.IsService)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return OperatingSystem.IsWindows() || OperatingSystem.IsMacOS();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the <see cref="INetworkManager"/> singleton instance.
|
|
|
|
/// Gets the <see cref="INetworkManager"/> singleton instance.
|
|
|
|