Anyone making "Sandbox-Safe" Audio Units?

DSP, Plugin and Host development discussion.
Post Reply New Topic
RELATED
PRODUCTS

Post

hibrasil wrote:does anyone know how you reset the security settings of garageband/logic X. I previously clicked "lower security settings" but would now like to try it as it was

cheers

oli
Buy a new Mac.

( :lol: I kill me!)

Post

Using Terminal type:

Code: Select all

defaults delete com.apple.audio.SandboxHelper
It will reset security settings.

Post

thanks george

Post

AdmiralQuality wrote: Buy a new Mac.
That's a pretty good one! :lol:

Post

can anyone suggest a good place to store global plugin prefs, preset banks in the sandbox world other than ~/Music?
needs to work across hosts of course.

thanks

Post

We store ours at ~/Documents/discoDSP but it's not a sandbox safe location.

I think Apple recommends to place them at ~/Music/Audio Music Apps/

Here it is a list of all folders placed there after a Logic X install (GarageBand X shares some too):

http://pastebin.com/TanzYPCp
Last edited by george on Tue Dec 10, 2013 7:24 pm, edited 1 time in total.

Post

:help:

Post

ok, looks like ~/Music it is. Do you know if you have to use a security-scoped bookmark, or can you just write to ~Music/MyApp/ freely?

EDIT -> seems like i can write into ~/Music just fine, without flagging up any sandboxd error messages. This is just using fopen/fwrite - without security scoped bookmarks etc

Post

hibrasil wrote:ok, looks like ~/Music it is. Do you know if you have to use a security-scoped bookmark, or can you just write to ~Music/MyApp/ freely?

EDIT -> seems like i can write into ~/Music just fine, without flagging up any sandboxd error messages. This is just using fopen/fwrite - without security scoped bookmarks etc
Does the user need administrator rights for that location?
I find it amazing that I can't use Preferences any more, I just don't understand! :cry:

Post

DaveHoskins wrote:
hibrasil wrote:ok, looks like ~/Music it is. Do you know if you have to use a security-scoped bookmark, or can you just write to ~Music/MyApp/ freely?

EDIT -> seems like i can write into ~/Music just fine, without flagging up any sandboxd error messages. This is just using fopen/fwrite - without security scoped bookmarks etc
Does the user need administrator rights for that location?
I find it amazing that I can't use Preferences any more, I just don't understand! :cry:
You could use ~/Music/Audio Music Apps/Plug-In Settings/myApp/ and ~/Music/Audio Music Apps/myApp/ instead.

Post

user has read/write permissions to ~/Music so I am using ~/Music/My Plugin/

Post

hibrasil wrote:user has read/write permissions to ~/Music so I am using ~/Music/My Plugin/
I went with this, but a customer just warned me that anything under ~/Music can potentially get shared back to Apple's cloud, making it a bad place to put key files.

Anyone know anything about this?

And does anyone know if a plug-in can reliably (across all recent OSX versions) write a file into ~/Application Support/Somefolder/ if Somefolder is already created?

Post

You can't rely upon anything. A folder in application support should be fully accessible, but the permissions could be changed.

For the rare case that a permissions issue could occur it would likely be best to just check for error after every operation and report to the user if files couldn't be read/written and your "plan B" doesn't work.

It is likely in such a case they'll need support anyway, so printing a message like "Failure accessing application data, code ####. Please file a support ticket at http://companysite" will just speed that up.

If you end up with lots of those you can adjust plans A and B to try to solve that.

If your directory is called "admiral quality/poly-ana/" it is extremely unlikely it would have been created by anything other than your own plugins or installer and so a permissions issue would have to be due to some action by the user.

https://developer.apple.com/library/mac ... ndbox.html
Free plug-ins for Windows, MacOS and Linux. Xhip Synthesizer v8.0 and Xhip Effects Bundle v6.7.
The coder's credo: We believe our work is neither clever nor difficult; it is done because we thought it would be easy.
Work less; get more done.

Post

aciddose wrote: For the rare case that a permissions issue could occur...
Have you done ANY Mac development?

Post

Yes, with over 100 beta testers there have been zero reports of permission issues. (For access to the application support directory.)
Free plug-ins for Windows, MacOS and Linux. Xhip Synthesizer v8.0 and Xhip Effects Bundle v6.7.
The coder's credo: We believe our work is neither clever nor difficult; it is done because we thought it would be easy.
Work less; get more done.

Post Reply

Return to “DSP and Plugin Development”