Skip to content

Commit

Permalink
Fix: Fixed issue where %temp% and %tmp% were not replaced with th…
Browse files Browse the repository at this point in the history
…e correct path (#12743)
  • Loading branch information
hishitetsu authored Jun 26, 2023
1 parent 75e27b8 commit 4cb5abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Files.App/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4cb5abb

Please sign in to comment.