Skip to content

Commit

Permalink
Deprecate CanLaunchWebBrowser (jellyfin#10381)
Browse files Browse the repository at this point in the history
It's been a while since I removed this feature from server not sure why it's
in the api anyway. The macOS and Windows app have this functionality
  • Loading branch information
Bond-009 authored Oct 10, 2023
1 parent dc27d8f commit 26571a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions Emby.Server.Implementations/SystemManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ public SystemManager(
_installationManager = installationManager;
}

private bool CanLaunchWebBrowser => Environment.UserInteractive
&& !_startupOptions.IsService
&& (OperatingSystem.IsWindows() || OperatingSystem.IsMacOS());

/// <inheritdoc />
public SystemInfo GetSystemInfo(HttpRequest request)
{
Expand All @@ -67,7 +63,6 @@ public SystemInfo GetSystemInfo(HttpRequest request)
ItemsByNamePath = _applicationPaths.InternalMetadataPath,
InternalMetadataPath = _applicationPaths.InternalMetadataPath,
CachePath = _applicationPaths.CachePath,
CanLaunchWebBrowser = CanLaunchWebBrowser,
TranscodingTempPath = _configurationManager.GetTranscodePath(),
ServerName = _applicationHost.FriendlyName,
LocalAddress = _applicationHost.GetSmartApiUrl(request),
Expand Down
3 changes: 2 additions & 1 deletion MediaBrowser.Model/System/SystemInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ public SystemInfo()
[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.
Expand Down

0 comments on commit 26571a8

Please sign in to comment.