Commit 3c55e9a
Avoid
* Don't use ApplicationData for config file on UNIX
When running on NET6 (VSMac installer), SpecialFolder.ApplicationData
returns nothing, resulting in a relative path being used for the config
file. So, just switch to use UserProfile, to which we append .config
for the well known, and expected, place for the config file.
Example testing with Mono's `csharp` command:
$ csharp
Mono C# Shell, type "help;" for help
Enter statements below.
csharp> Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
"/Users/jopepper/.config"
csharp> Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)
"/Users/jopepper"
Co-authored-by: Jonathan Peppers <[email protected]>Environment.SpecialFolder.ApplicationData (#188)1 parent 0d55472 commit 3c55e9a
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | | - | |
| 226 | + | |
228 | 227 | | |
229 | 228 | | |
230 | 229 | | |
| |||
0 commit comments