mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 09:34:44 +01:00
add ApplicationPath to app paths interface to hide implementation
This commit is contained in:
@@ -27,6 +27,7 @@ using MediaBrowser.Controller.Session;
|
||||
using MediaBrowser.Controller.Sorting;
|
||||
using MediaBrowser.Model.Logging;
|
||||
using MediaBrowser.Model.MediaInfo;
|
||||
using MediaBrowser.Model.Serialization;
|
||||
using MediaBrowser.Model.System;
|
||||
using MediaBrowser.Model.Updates;
|
||||
using MediaBrowser.Providers;
|
||||
|
||||
@@ -158,7 +158,9 @@ namespace MediaBrowser.ServerApplication
|
||||
return new ServerApplicationPaths(programDataPath);
|
||||
}
|
||||
|
||||
return new ServerApplicationPaths();
|
||||
var applicationPath = Process.GetCurrentProcess().MainModule.FileName;
|
||||
|
||||
return new ServerApplicationPaths(applicationPath);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user