From c53e429c9c3948cda44bbaf105c8e5ad1fb27f58 Mon Sep 17 00:00:00 2001 From: Jerome Laban Date: Mon, 28 Sep 2020 09:01:05 -0400 Subject: [PATCH] fix(unix): Adjust `ApplicationData.Local` path to use proper locations under unix --- src/Uno.UWP/Storage/ApplicationData.skia.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Uno.UWP/Storage/ApplicationData.skia.cs b/src/Uno.UWP/Storage/ApplicationData.skia.cs index 5de4ccac42b8..1af550b08ecf 100644 --- a/src/Uno.UWP/Storage/ApplicationData.skia.cs +++ b/src/Uno.UWP/Storage/ApplicationData.skia.cs @@ -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);