diff --git a/src/Files.App/Constants.cs b/src/Files.App/Constants.cs index c1ece8663f31..81c628b1299c 100644 --- a/src/Files.App/Constants.cs +++ b/src/Files.App/Constants.cs @@ -229,7 +229,7 @@ public static class UserEnvironmentPaths public const string MyComputerPath = @"Shell:MyComputerFolder"; - public static readonly string TempPath = Windows.Storage.ApplicationData.Current.LocalSettings.Values.Get("TEMP", ""); + public static readonly string TempPath = Environment.GetEnvironmentVariable("TEMP") ?? ""; public static readonly string HomePath = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);