aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2015-04-16 11:41:23 -0400
committerLuke <luke.pulverenti@gmail.com>2015-04-16 11:41:23 -0400
commit772a7938a0be9a6414ac4049e7b8ad93f3aedb48 (patch)
treed65135d3cf8daacca2253a0662d71eb37e9f500e
parent73688e3fcc2dea07bd11ff842276906942407c45 (diff)
use emby for program data on mac
-rw-r--r--MediaBrowser.Server.Mac/Main.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Mac/Main.cs b/MediaBrowser.Server.Mac/Main.cs
index 0a1fd1b3d..b4184f3b1 100644
--- a/MediaBrowser.Server.Mac/Main.cs
+++ b/MediaBrowser.Server.Mac/Main.cs
@@ -62,6 +62,10 @@ namespace MediaBrowser.Server.Mac
{
// TODO: Use CommonApplicationData? Will we always have write access?
programDataPath = Path.Combine(Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData), "mediabrowser-server");
+
+ if (!Directory.Exists (programDataPath)) {
+ programDataPath = Path.Combine(Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData), "emby-server");
+ }
}
// Within the mac bundle, go uo two levels then down into Resources folder