Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserDefaults doesn't work on Windows when USERNAME and USERPROFILE don't match #4997

Open
stevenbrix opened this issue Jun 28, 2024 · 0 comments · May be fixed by #4998
Open

UserDefaults doesn't work on Windows when USERNAME and USERPROFILE don't match #4997

stevenbrix opened this issue Jun 28, 2024 · 0 comments · May be fixed by #4998
Labels

Comments

@stevenbrix
Copy link

stevenbrix commented Jun 28, 2024

Since UserDefaults hand builds the path to the local app data location, this location is incorrect if the USERNAME doesn't match the USERPROFILE location directory. This means that all UserDefaults writes will fail because the location on disk won't exist.

@stevenbrix stevenbrix changed the title UserDefaults doesn't work on Windows when USERNAME and UserDir don't match UserDefaults doesn't work on Windows when USERNAME and USERPROFILE don't match Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants