Hi everyone,
This is the first plugin I am shipping with presets and the loading and saving are working fine. I am using File::SpecialLocationType::commonApplicationDataDirectory as the directory for my presets. The documentation for this location is sort of vague in the sense that there are expressions like “could be something like” and “depending on the setup”. I would like to ship the plugin with the XML preset files and install them in a location where the plugin can find them reliably. Of course, I know where the commonAppDataDirectory is on my PC but will this be the same for every machine? I have noticed that almost all manufacturers install their presets in that very folder so should I just use this file path in the installer and hope for the best that every machine has it and that it isn’t read-only? So I guess what I am asking is how will I make sure that after the installation the file location where the presets are installed and the location the plugin is searching them from, match? Or should I take a different approach and create the preset files when the plugin is first opened therefore dynamically finding a good file location for each machine? Seems unnecessary to allocate all that memory for each instance of the plugin though. Any advice would be highly appreciated.