diff options
| author | Luke <luke.pulverenti@gmail.com> | 2014-11-26 20:56:14 -0500 |
|---|---|---|
| committer | Luke <luke.pulverenti@gmail.com> | 2014-11-26 20:56:14 -0500 |
| commit | 89c0085e28de24d1093f3996c345c339730a45ba (patch) | |
| tree | f63a978e17e309e0a7a9aab55dff1eef54895698 /MediaBrowser.Server.Mac/Main.cs | |
| parent | 453536832756d6fae90dcc01f300be88126056ea (diff) | |
update mac project
Diffstat (limited to 'MediaBrowser.Server.Mac/Main.cs')
| -rw-r--r-- | MediaBrowser.Server.Mac/Main.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Mac/Main.cs b/MediaBrowser.Server.Mac/Main.cs index f6c312aeb..83665540f 100644 --- a/MediaBrowser.Server.Mac/Main.cs +++ b/MediaBrowser.Server.Mac/Main.cs @@ -72,8 +72,9 @@ namespace MediaBrowser.Server.Mac // TODO: Use CommonApplicationData? Will we always have write access? programDataPath = Path.Combine(Environment.GetFolderPath (Environment.SpecialFolder.ApplicationData), "mediabrowser-server"); } - // p5437mav0ABB83l - var resourcesPath = Path.Combine(Path.GetDirectoryName (applicationPath), "Resources"); + + // Within the mac bundle, go uo two levels then down into Resources folder + var resourcesPath = Path.Combine(Path.GetDirectoryName(Path.GetDirectoryName (applicationPath)), "Resources"); return new ServerApplicationPaths(programDataPath, applicationPath, resourcesPath); } @@ -109,9 +110,10 @@ namespace MediaBrowser.Server.Mac var initProgress = new Progress<double>(); var task = _appHost.Init(initProgress); - task = task.ContinueWith(new Action<Task>(a => _appHost.RunStartupTasks())); Task.WaitAll(task); + + Task.Run (() => _appHost.RunStartupTasks()); } /// <summary> |
