aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Mono/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Server.Mono/Program.cs')
-rw-r--r--MediaBrowser.Server.Mono/Program.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Mono/Program.cs b/MediaBrowser.Server.Mono/Program.cs
index 057a2456f..d423017fc 100644
--- a/MediaBrowser.Server.Mono/Program.cs
+++ b/MediaBrowser.Server.Mono/Program.cs
@@ -36,7 +36,9 @@ namespace MediaBrowser.Server.Mono
{
Application.Init ();
- var appPaths = CreateApplicationPaths();
+ var applicationPath = Assembly.GetEntryAssembly ().Location;
+
+ var appPaths = CreateApplicationPaths(applicationPath);
var logManager = new NlogManager(appPaths.LogDirectoryPath, "server");
logManager.ReloadLogger(LogSeverity.Info);
@@ -65,9 +67,9 @@ namespace MediaBrowser.Server.Mono
}
}
- private static ServerApplicationPaths CreateApplicationPaths()
+ private static ServerApplicationPaths CreateApplicationPaths(string applicationPath)
{
- return new ServerApplicationPaths();
+ return new ServerApplicationPaths(applicationPath);
}
/// <summary>