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, sandbox] Add files.user-selected entitlement support for arbitrary folder access. #47056

Closed
wants to merge 1 commit into from

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Mar 16, 2021

Adds ability to access arbitrary folders for macOS sandboxed apps (EntitlementsApp SandboxEnabled is selected during export).

  • Adds files.user-selected entitlement support to the export dialog.
  • Implements OS_OSX::request_permission("APP_SANDBOX_FILE_ACCESS") to request access to the folder.
  • Implements OS_OSX::get_granted_permissions() to get list of accessible folders.
  • Granted permissions are preserved across sessions as sandbox security-scoped bookmarks.
  • Has no effect for non-sandboxed apps.
sandbox_file_access.mov

Edit: It's relevant for 3.x as well, but will require separate PR.

@bruvzg
Copy link
Member Author

bruvzg commented Mar 30, 2021

Alternative variant, which is using native file dialogs in sandboxed apps instead: #47499

@bruvzg
Copy link
Member Author

bruvzg commented May 7, 2021

Closed in favor of PR #47499.

@bruvzg bruvzg closed this May 7, 2021
@bruvzg bruvzg deleted the macos_sandbox_user_folder branch November 5, 2021 13:02
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.

2 participants