appdata-path
appdata-path copied to clipboard
APPDATA not being detected Windows 10
Hardcoding the user's home directory on Windows breaks when the AppData\Roaming directory is moved. This also can cause issues on non-english systems.
You should pull the %APPDATA% environment variable. Anytime this is used in a domain environemnt with AppData\Roaming moved to a network share, it will break any application that uses it to store information there because it will either be denied access or it will end up on the C drive where it will not successfully roam with the profile.
EDIT: Reading from APPDATA is present in a roundabout way. Why is it not working on Windows 10? Does the OS identifier need to be updated?