From 70aa7fe77d71869c99c0ec77a49edcd143d994b9 Mon Sep 17 00:00:00 2001 From: cvium Date: Fri, 11 Sep 2020 10:34:47 +0200 Subject: [PATCH] Normalize application paths --- Jellyfin.Server/Program.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.cs index 45959aec2d..c933d679f4 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 {