The Free Software Media System - Server Backend & API
update osx detection
Luke Pulverentia447fd291aef
diff --git a/Emby.Common.Implementations/EnvironmentInfo/EnvironmentInfo.cs b/Emby.Common.Implementations/EnvironmentInfo/EnvironmentInfo.csindex 6cc4626eaf..dcc9744136 100644--- a/Emby.Common.Implementations/EnvironmentInfo/EnvironmentInfo.cs+++ b/Emby.Common.Implementations/EnvironmentInfo/EnvironmentInfo.cs@@ -10,11 +10,17 @@ namespace Emby.Common.Implementations.EnvironmentInfopublic class EnvironmentInfo : IEnvironmentInfo{public MediaBrowser.Model.System.Architecture? CustomArchitecture { get; set; }+ public MediaBrowser.Model.System.OperatingSystem? CustomOperatingSystem { get; set; }public MediaBrowser.Model.System.OperatingSystem OperatingSystem{get{+ if (CustomOperatingSystem.HasValue)+ {+ return CustomOperatingSystem.Value;+ }+#if NET46switch (Environment.OSVersion.Platform){diff --git a/MediaBrowser.Server.Mac/Main.cs b/MediaBrowser.Server.Mac/Main.csindex cda6f459a9..6d02c7a1a0 100644--- a/MediaBrowser.Server.Mac/Main.cs+++ b/MediaBrowser.Server.Mac/Main.cs@@ -142,7 +142,10 @@ namespace MediaBrowser.Server.Macprivate static EnvironmentInfo GetEnvironmentInfo(){- var info = new EnvironmentInfo();+ var info = new EnvironmentInfo()+ {+ CustomOperatingSystem = MediaBrowser.Model.System.OperatingSystem.OSX+ };var uname = GetUnixName();