Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS packaging: Enable app sandbox in ad-hoc-packaged (i.e. non-notarized) bundles too #12101

Merged
merged 1 commit into from Oct 14, 2023

Conversation

fwcd
Copy link
Member

@fwcd fwcd commented Oct 13, 2023

In #4774 and specifically e922329 we set up ad-hoc signing for (non-notarized) macOS builds in a way that neither uses the hardened runtime nor app sandbox.

Apparently, macOS Sonoma will prompt the user at every launch when a non-sandboxed app accesses a sandboxed path, even of the app itself (~/Library/Containers/org.mixxx.mixxx/...). See #12098 and this blog post for details.

For this reason, this PR passes the entitlements, and thus enables app sandbox, in ad-hoc-signed builds too (note that we'll still leave the hardened runtime disabled for now), which should fix the issue.

@fwcd
Copy link
Member Author

fwcd commented Oct 13, 2023

Note that users will now get this warning instead:

Screenshot 2023-10-13 at 18 26 32

This warning, however, only shows up once (as opposed to the dialog discussed in #12098).

@fwcd
Copy link
Member Author

fwcd commented Oct 13, 2023

Note that the standard Gatekeeper workflow of having to double-click the app once to get

Screenshot 2023-10-13 at 18 32 12

and then having to right-click -> Open to get

Screenshot 2023-10-13 at 18 32 20

...still applies. Nothing special to see here, this is how macOS treats every non-notarized app.

@fwcd fwcd changed the title macOS packaging: Enable app sandbox in ad-hoc-packaged bundles too macOS packaging: Enable app sandbox in ad-hoc-packaged (i.e. non-notarized) bundles too Oct 13, 2023
@fwcd fwcd marked this pull request as ready for review October 13, 2023 17:36
Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks reasonable. Thank you.

@daschuer daschuer merged commit 33d4d79 into mixxxdj:main Oct 14, 2023
13 checks passed
@fwcd fwcd deleted the ad-hoc-entitlements branch October 14, 2023 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Mixxx.app" would like to access data from other apps prompt on macOS Sonoma
2 participants