The Free Software Media System - Server Backend & API
Deprecate CanLaunchWebBrowser (#10381)
Bond-00926571a8c51b9
diff --git a/Emby.Server.Implementations/SystemManager.cs b/Emby.Server.Implementations/SystemManager.csindex 5e9c424e9a..af66b62e3e 100644--- a/Emby.Server.Implementations/SystemManager.cs+++ b/Emby.Server.Implementations/SystemManager.cs@@ -46,10 +46,6 @@ public class SystemManager : ISystemManager_installationManager = installationManager;}- private bool CanLaunchWebBrowser => Environment.UserInteractive- && !_startupOptions.IsService- && (OperatingSystem.IsWindows() || OperatingSystem.IsMacOS());-/// <inheritdoc />public SystemInfo GetSystemInfo(HttpRequest request){@@ -67,7 +63,6 @@ public class SystemManager : ISystemManagerItemsByNamePath = _applicationPaths.InternalMetadataPath,InternalMetadataPath = _applicationPaths.InternalMetadataPath,CachePath = _applicationPaths.CachePath,- CanLaunchWebBrowser = CanLaunchWebBrowser,TranscodingTempPath = _configurationManager.GetTranscodePath(),ServerName = _applicationHost.FriendlyName,LocalAddress = _applicationHost.GetSmartApiUrl(request),diff --git a/MediaBrowser.Model/System/SystemInfo.cs b/MediaBrowser.Model/System/SystemInfo.csindex bd0099af70..502fc38abc 100644--- a/MediaBrowser.Model/System/SystemInfo.cs+++ b/MediaBrowser.Model/System/SystemInfo.cs@@ -84,7 +84,8 @@ namespace MediaBrowser.Model.System[Obsolete("This is always true")]public bool CanSelfRestart { get; set; } = true;- public bool CanLaunchWebBrowser { get; set; }+ [Obsolete("This is always false")]+ public bool CanLaunchWebBrowser { get; set; } = false;/// <summary>/// Gets or sets the program data path.