Getting Mac folder strings..
-
So I'm building an installer/uninstaller in HISE and I'd like to get the plugin folder as a string, so these:
Macintosh HD\Users\<username>\Library\Audio\Plugins\VST3 Macintosh HD\Users\<username>\Library\Audio\Plugins\Component
Im no Mac expert (as should be pretty obvious by now...)
Any way to get to these in HISE?
Or does everyone just use:
\Library\Audio\Plugins\VST3
\Library\Audio\Plugins\Components???
-
Don't use the user folder. Use the system folder. https://helpcenter.steinberg.de/hc/en-us/articles/115000171310
I did add a function to HISE that returns some system information. It might return the name of the logged in user I can't remember. If it doesn't do it I could add it very easily as it's just an extra property JUCE provides.
-
This:
Macintosh HD\Users\<username>\
can be always written like this:
~/ ~/Library/Audio/Plugins/VST3
Also, don't ever use backslashes as path separators. That's Windows only (and even Windows accepts the
/
separator, so there's absolutely no reason to use\
. -
@d-healey - yeah I think my edit and your message crossed in the post... I will stick to the system wide locations then.
-
@Christoph-Hart - yeah I get that thanks - it was just a convenience (me being lazy) in my posting...