Browse Source

use emby for program data on mac

Luke 10 years ago
parent
commit
772a7938a0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      MediaBrowser.Server.Mac/Main.cs

+ 4 - 0
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