blob: 697e4fa3383ab61b89b54aeea178c820d6a0668e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
diff -ur src.orig/RoslynPad.Common.UI/Services/IApplicationSettings.cs src/RoslynPad.Common.UI/Services/IApplicationSettings.cs
--- src.orig/RoslynPad.Common.UI/Services/IApplicationSettings.cs 2020-07-18 23:44:15.000000000 +0200
+++ src/RoslynPad.Common.UI/Services/IApplicationSettings.cs 2020-07-28 17:55:06.445431776 +0200
@@ -204,7 +204,13 @@
}
else // Unix or Mac
{
- documentsPath = Environment.GetEnvironmentVariable("HOME");
+ documentsPath = Environment.GetEnvironmentVariable("XDG_CONFIG_HOME");
+ if (documentsPath == null) {
+ string? homePath = Environment.GetEnvironmentVariable("HOME");
+ if (homePath != null) {
+ documentsPath = Path.Combine(homePath, ".config");
+ }
+ }
}
if (string.IsNullOrEmpty(documentsPath))
|