Mac OS permissions - how and where to write plugin support files?

DSP, Plug-in and Host development discussion.
Fender19
KVRist
380 posts since 30 Aug, 2012

Post Tue Oct 08, 2019 5:45 pm

It seems everything I try to do on Mojave requires me to enter my user password - creating a folder, file, etc.

So how do plugin installers manage to create folders and files when there is so much OS restriction?

For example a simple license file - where can you save it and how do get “permission” to save it there?

User avatar
lorcan
KVRist
141 posts since 26 Sep, 2001 from Paris, France

Re: Mac OS permissions - how and where to write plugin support files?

Post Wed Oct 09, 2019 4:08 am

Code: Select all

/Users/<user>/Library/Application Support/<your_app>
doesn't need special permissions.

Fender19
KVRist
380 posts since 30 Aug, 2012

Re: Mac OS permissions - how and where to write plugin support files?

Post Wed Oct 09, 2019 8:43 am

lorcan wrote:
Wed Oct 09, 2019 4:08 am

Code: Select all

/Users/<user>/Library/Application Support/<your_app>
doesn't need special permissions.
Thank you - will give that a try. 👍

simmo75
KVRAF
1737 posts since 25 Mar, 2016 from Seattle

Re: Mac OS permissions - how and where to write plugin support files?

Post Wed Oct 09, 2019 9:04 am

I’ve got weird permissions stuff (I think..) going on with Arturia products. The ASC software just will not download and install anything, I get “download error” but for some reason will download and install Mellotron but everything else fails...

Anyone else had this issue?

User avatar
syntonica
KVRian
549 posts since 25 Sep, 2014 from Specific Northwest

Re: Mac OS permissions - how and where to write plugin support files?

Post Fri Oct 11, 2019 5:35 pm

If it's stuff the user never really needs to get at, saving to the Resource folder in the plugin bundle works.

Fender19
KVRist
380 posts since 30 Aug, 2012

Re: Mac OS permissions - how and where to write plugin support files?

Post Sun Oct 13, 2019 6:22 pm

syntonica wrote:
Fri Oct 11, 2019 5:35 pm
If it's stuff the user never really needs to get at, saving to the Resource folder in the plugin bundle works.
👍

User avatar
Urs
u-he
24270 posts since 8 Aug, 2002 from Berlin

Re: Mac OS permissions - how and where to write plugin support files?

Post Thu Oct 24, 2019 5:35 am

syntonica wrote:
Fri Oct 11, 2019 5:35 pm
If it's stuff the user never really needs to get at, saving to the Resource folder in the plugin bundle works.
Don't you run into the risk that updates overwrite/erase that?

User avatar
syntonica
KVRian
549 posts since 25 Sep, 2014 from Specific Northwest

Re: Mac OS permissions - how and where to write plugin support files?

Post Thu Oct 24, 2019 12:28 pm

Urs wrote:
Thu Oct 24, 2019 5:35 am
syntonica wrote:
Fri Oct 11, 2019 5:35 pm
If it's stuff the user never really needs to get at, saving to the Resource folder in the plugin bundle works.
Don't you run into the risk that updates overwrite/erase that?
Oh, absolutely. I currently keep all my patch data there, as well as globals. It's not the end of the world for me to make my end-users manually copy stuff out to rescue it before manually upgrading. Many plugin makers do that anyway with patches living in a dozen or so other locations.

I'm waiting for the post-Catalina shakeup to finally complete with iOS/macOS singularity convergence. There's just too much fuzziness in the "middleware" area right now. What I'd love to see is /Library go away. We can have just System space and Users space. All applications and support go into /Users/Shared or ~ and all OS related (drivers) go into /System.

Once that's done, there should be only two locations instead of /Library or /Library/Application Support or /Library/Audio... Or the local ~ versions of those, or ~/Documents... Or /Users/Shared... It's a real mess and for now, I'm keeping my data close until these boundaries become more clearly defined before finding a more suitable location.

Return to “DSP and Plug-in Development”