aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Program.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2020-09-11 17:01:58 +0000
committerGitHub <noreply@github.com>2020-09-11 17:01:58 +0000
commit6bf0acb854683377bebad3ca27de17706519c420 (patch)
tree2e802bed46c60de34c87b8e801f68d38dec452bd /Jellyfin.Server/Program.cs
parentebdcff8b0857a0aa0d49fe722e4823d3949e83ed (diff)
parent70aa7fe77d71869c99c0ec77a49edcd143d994b9 (diff)
Merge pull request #4121 from cvium/normalize_app_paths
Normalize application paths
Diffstat (limited to 'Jellyfin.Server/Program.cs')
-rw-r--r--Jellyfin.Server/Program.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs
index 45959aec2..c933d679f 100644
--- a/Jellyfin.Server/Program.cs
+++ b/Jellyfin.Server/Program.cs
@@ -527,6 +527,13 @@ namespace Jellyfin.Server
}
}
+ // Normalize paths. Only possible with GetFullPath for now - https://github.com/dotnet/runtime/issues/2162
+ dataDir = Path.GetFullPath(dataDir);
+ logDir = Path.GetFullPath(logDir);
+ configDir = Path.GetFullPath(configDir);
+ cacheDir = Path.GetFullPath(cacheDir);
+ webDir = Path.GetFullPath(webDir);
+
// Ensure the main folders exist before we continue
try
{