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

This does not always work under Windows (Networked APPDATA dirs) #6

Open
dragetd opened this issue Apr 17, 2019 · 0 comments
Open

This does not always work under Windows (Networked APPDATA dirs) #6

dragetd opened this issue Apr 17, 2019 · 0 comments

Comments

@dragetd
Copy link

dragetd commented Apr 17, 2019

The environment variable can be broken on systems. We came across a setup with the users directory on a network drive H:\ and APPDATA not resolving to anything.

I am surprised myself how anything works on this system, but I guess Windows's own API which one is supposed to use does work:
https://stackoverflow.com/questions/5920853/how-to-open-a-folder-in-appdata-with-c

This is the same used by QT: https://code.woboq.org/qt5/qtbase/src/corelib/io/qstandardpaths_win.cpp.html

I'd recommend using this API call get the directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant