aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-12-21 23:47:59 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-12-21 23:47:59 -0500
commita447fd291aef2088d890571e80e4d498fc4498d2 (patch)
tree4cbadf80d106821acd08e153ab5c7ba3d7d78547
parent961ec0b815e0857abaaa0f474ae13dfa3b6b25ba (diff)
update osx detection
-rw-r--r--Emby.Common.Implementations/EnvironmentInfo/EnvironmentInfo.cs6
-rw-r--r--MediaBrowser.Server.Mac/Main.cs5
2 files changed, 10 insertions, 1 deletions
diff --git a/Emby.Common.Implementations/EnvironmentInfo/EnvironmentInfo.cs b/Emby.Common.Implementations/EnvironmentInfo/EnvironmentInfo.cs
index 6cc4626ea..dcc974413 100644
--- a/Emby.Common.Implementations/EnvironmentInfo/EnvironmentInfo.cs
+++ b/Emby.Common.Implementations/EnvironmentInfo/EnvironmentInfo.cs
@@ -10,11 +10,17 @@ namespace Emby.Common.Implementations.EnvironmentInfo
public 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 NET46
switch (Environment.OSVersion.Platform)
{
diff --git a/MediaBrowser.Server.Mac/Main.cs b/MediaBrowser.Server.Mac/Main.cs
index cda6f459a..6d02c7a1a 100644
--- a/MediaBrowser.Server.Mac/Main.cs
+++ b/MediaBrowser.Server.Mac/Main.cs
@@ -142,7 +142,10 @@ namespace MediaBrowser.Server.Mac
private static EnvironmentInfo GetEnvironmentInfo()
{
- var info = new EnvironmentInfo();
+ var info = new EnvironmentInfo()
+ {
+ CustomOperatingSystem = MediaBrowser.Model.System.OperatingSystem.OSX
+ };
var uname = GetUnixName();