Add further resources to complete WebPath

This commit is contained in:
Joshua Boniface
2019-03-10 17:04:18 -04:00
parent 25deca9579
commit 132ce3ece1
6 changed files with 28 additions and 2 deletions

View File

@@ -35,6 +35,12 @@ namespace Emby.Server.Implementations.AppBase
/// <value>The program data path.</value>
public string ProgramDataPath { get; private set; }
/// <summary>
/// Gets the path to the web resources folder
/// </summary>
/// <value>The web resources path.</value>
public string WebPath { get; set; }
/// <summary>
/// Gets the path to the system folder
/// </summary>

View File

@@ -621,7 +621,7 @@ namespace Emby.Server.Implementations
string contentRoot = ServerConfigurationManager.Configuration.DashboardSourcePath;
if (string.IsNullOrEmpty(contentRoot))
{
contentRoot = Path.Combine(ServerConfigurationManager.ApplicationPaths,WebPath, "src");
contentRoot = Path.Combine(ServerConfigurationManager.ApplicationPaths.WebPath, "src");
}
var host = new WebHostBuilder()
@@ -921,6 +921,7 @@ namespace Emby.Server.Implementations
logger.LogInformation("User Interactive: {IsUserInteractive}", Environment.UserInteractive);
logger.LogInformation("Processor count: {ProcessorCount}", Environment.ProcessorCount);
logger.LogInformation("Program data path: {ProgramDataPath}", appPaths.ProgramDataPath);
logger.LogInformation("Web resources path: {WebPath}", appPaths.WebPath);
logger.LogInformation("Application directory: {ApplicationPath}", appPaths.ProgramSystemPath);
}
@@ -1393,6 +1394,7 @@ namespace Emby.Server.Implementations
CompletedInstallations = InstallationManager.CompletedInstallations.ToArray(),
Id = SystemId,
ProgramDataPath = ApplicationPaths.ProgramDataPath,
WebPath = ApplicationPaths.WebPath,
LogPath = ApplicationPaths.LogDirectoryPath,
ItemsByNamePath = ApplicationPaths.InternalMetadataPath,
InternalMetadataPath = ApplicationPaths.InternalMetadataPath,

View File

@@ -35,6 +35,12 @@ namespace Emby.Server.Implementations
/// <value>The root folder path.</value>
public string RootFolderPath => Path.Combine(ProgramDataPath, "root");
/* /// <summary>
/// Gets the path to the Web resources
/// </summary>
/// <value>The web folder path.</value>
public string WebPath => WebPath; */
/// <summary>
/// Gets the path to the default user view directory. Used if no specific user view is defined.
/// </summary>