Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

Conversation

@mrward
Copy link
Member

@mrward mrward commented Sep 20, 2022

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.

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
@slluis slluis merged commit 32113dc into main Sep 20, 2022
@slluis slluis deleted the dev/mrward/net8-special-folder-breaking-change branch September 20, 2022 14:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants