diff options
| author | Rich Lander <rlander@microsoft.com> | 2021-07-30 10:44:43 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-30 10:44:43 -0700 |
| commit | 47da13613b143794e1f1422e05dac63a40f5f66a (patch) | |
| tree | 59ec139682ed5a61f7c24ccf9e6df434cffad04a /Jellyfin.Server/Program.cs | |
| parent | 927b003143f7e4772e21b767f2524f969ddf1ad8 (diff) | |
| parent | 0ee74b293d1f6fa1be63b8b4e5e2498a7f18298f (diff) | |
Merge branch 'master' into media-provides-analysis-fixes
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"); |
