mono / mono-addins

Mono.Addins is a generic framework for creating extensible applications, and for creating add-ins which extend those applications.
MIT License
163 stars 94 forks source link

Use Environment.SpecialFolder.UserProfile instead of Personal #192

Closed mrward closed 2 years ago

mrward commented 2 years ago

Mono and .NET, before .NET 8, would resolve the System.Environment.SpecialFolder.Personal enum value to the $HOME directory. In .NET 8 this is changing. The Personal folder will now refer to $XDG_DOCUMENTS_DIR if set or $HOME/Documents otherwise.

Replace all uses of Environment.SpecialFolder.Personal with Environment.SpecialFolder.UserProfile so the code behaves as it did before. UserProfile still maps to $HOME

dotnet/runtime#68610

Note: Not sure this is needed - only looks like SpecialFolder.Personal is only used in gtk# UI and mono is not being updated with this change.