diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2021-07-23 20:54:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-23 20:54:13 +0200 |
| commit | 5a9bd712b34c0c01e82a9ce6c7c1e273044e6986 (patch) | |
| tree | a3fd41ac7bfb1949d25c8c0712b4e8d6d13e3c09 /Jellyfin.Server/Program.cs | |
| parent | 0e2a6f8216e0a675b43cf2919fb1d57b46f14972 (diff) | |
| parent | 8528e9bddb4c2dd9e1e3294649e39c7ec609bdf5 (diff) | |
Merge pull request #6296 from Bond-009/oscheck
Improve platform checks
Diffstat (limited to 'Jellyfin.Server/Program.cs')
| -rw-r--r-- | Jellyfin.Server/Program.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs index 3a3d7415b..934372a94 100644 --- a/Jellyfin.Server/Program.cs +++ b/Jellyfin.Server/Program.cs @@ -318,8 +318,8 @@ namespace Jellyfin.Server } } - // Bind to unix socket (only on macOS and Linux) - if (startupConfig.UseUnixSocket() && !RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + // Bind to unix socket (only on unix systems) + if (startupConfig.UseUnixSocket() && Environment.OSVersion.Platform == PlatformID.Unix) { var socketPath = startupConfig.GetUnixSocketPath(); if (string.IsNullOrEmpty(socketPath)) @@ -404,7 +404,7 @@ namespace Jellyfin.Server { if (options.DataDir != null || Directory.Exists(Path.Combine(dataDir, "config")) - || RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + || OperatingSystem.IsWindows()) { // Hang config folder off already set dataDir configDir = Path.Combine(dataDir, "config"); @@ -442,7 +442,7 @@ namespace Jellyfin.Server if (string.IsNullOrEmpty(cacheDir)) { - if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) + if (OperatingSystem.IsWindows()) { // Hang cache folder off already set dataDir cacheDir = Path.Combine(dataDir, "cache"); |
