“USER_HOME_DIRECTORY
” - retrieves the full path of the user’s home directory. “USER_DESKTOP_DIRECTORY
” - retrieves the full path of the user’s Desktop directory. “USER_MUSIC_DIRECTORY
” - retrieves the full path of the user’s Desktop directory.
“USER_APPLICATION_DIRECTORY
” - retrieves the full path of the user’s application directory. C:/Users/username/AppData
on Windows, ~/Library
on MacOS
“USER_DOCUMENTS_DIRECTORY
”, - retrieves the full path of the user’s application directory
These strings don’t have a ‘/’ at the end so if you want to construct a new path, make sure to add one. Also be aware that some DAW sandbox processes, so these paths might not always be correct. The USER_HOME_DIRECTORY
should work no matter what host you use. It passes Garageband’s crazy sandboxing, which is a good sign!