diff options
| author | Tom Deseyn <tom.deseyn@gmail.com> | 2024-10-10 21:35:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-10 13:35:00 -0600 |
| commit | 4492eb0e66d39fa7e53a8d54321373a96d1c5553 (patch) | |
| tree | a7ea07f32b317842bd6739b4ebcce01d04ee60aa /Jellyfin.Server/Helpers | |
| parent | 27ad11039c327586f3688b683043e10b81e75304 (diff) | |
StartupHelper: fix app paths when SpecialFolder does not yet exists. (#12790)
Diffstat (limited to 'Jellyfin.Server/Helpers')
| -rw-r--r-- | Jellyfin.Server/Helpers/StartupHelpers.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Jellyfin.Server/Helpers/StartupHelpers.cs b/Jellyfin.Server/Helpers/StartupHelpers.cs index 5518d6ba8..0802b23ad 100644 --- a/Jellyfin.Server/Helpers/StartupHelpers.cs +++ b/Jellyfin.Server/Helpers/StartupHelpers.cs @@ -83,7 +83,7 @@ public static class StartupHelpers var dataDir = options.DataDir ?? Environment.GetEnvironmentVariable("JELLYFIN_DATA_DIR") ?? Path.Join( - Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), + Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData, Environment.SpecialFolderOption.DoNotVerify), "jellyfin"); var configDir = options.ConfigDir ?? Environment.GetEnvironmentVariable("JELLYFIN_CONFIG_DIR"); @@ -97,7 +97,7 @@ public static class StartupHelpers { // UNIX: $XDG_CONFIG_HOME configDir = Path.Join( - Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), + Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData, Environment.SpecialFolderOption.DoNotVerify), "jellyfin"); } } @@ -163,7 +163,7 @@ public static class StartupHelpers if (cacheHome is null || !cacheHome.StartsWith('/')) { cacheHome = Path.Join( - Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), + Environment.GetFolderPath(Environment.SpecialFolder.UserProfile, Environment.SpecialFolderOption.DoNotVerify), ".cache"); } |
