Skip to content

Commit

Permalink
fix(unix): Adjust ApplicationData.Local path to use proper location…
Browse files Browse the repository at this point in the history
…s under unix
  • Loading branch information
jeromelaban committed Sep 28, 2020
1 parent a34b232 commit c53e429
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Uno.UWP/Storage/ApplicationData.skia.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ private static string GetTemporaryFolder()
=> Path.GetTempPath();

private static string GetLocalFolder()
=> AppDomain.CurrentDomain.BaseDirectory;
// Uses XDG_DATA_HOME on Unix: https://github.com/dotnet/runtime/blob/b5705587347d29d79cec830dc22b389e1ad9a9e0/src/libraries/System.Private.CoreLib/src/System/Environment.GetFolderPathCore.Unix.cs#L105
=> Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);

private static string GetRoamingFolder()
=> Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
Expand Down

0 comments on commit c53e429

Please sign in to comment.