packages icon indicating copy to clipboard operation
packages copied to clipboard

Question or Request: support sandboxed Application Support directory

Open sagecook opened this issue 7 years ago • 2 comments

We are modifying our apps to be sandboxed which means any files we normally put in ~/Library/Application Support/ would now have to be put in the sandboxed app container directory, something like ~/Library/containers/. Is there or could there be a pseudo Standard folder added to the Payload tab that would represent the sandboxed "Application Support" directory? According to Apple, there are a few auto-defined variables; ${ApplicationSupport}, ${BundleId} and ${Library}. Could we use these?

sagecook avatar Jan 18 '19 15:01 sagecook

Actually, the auto-defined variables are used only within a container migration manifest. But, still wondering how packages can work with sandboxing.

sagecook avatar Jan 18 '19 18:01 sagecook

As far as I know, there is one container per app (named with the bundle identifier of the app). So there is nothing generic about this.

I'm afraid you still need to create the directory hierarchy manually in the Payload tab. Obviously, it could be possible to do something smarter (like having a contextual menu for the app item in the Payload that lets you create the container hierarchy). But since you can't easily create a distribution that installs files both in / and ~, this still would not provide a real solution.

packagesdev avatar Jan 19 '19 12:01 packagesdev