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

caveats: Update message displayed by unsigned_accessibility #14092

Merged
merged 2 commits into from
Nov 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions Library/Homebrew/cask/dsl/caveats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,20 @@ def eval_caveats(&block)
end

caveat :unsigned_accessibility do |access = "Accessibility"|
# access: the category in System Preferences > Security & Privacy > Privacy the app requires.
# access: the category in the privacy settings the app requires.

navigation_path = if MacOS.version < :ventura
"System Preferences → Security & Privacy → Privacy"
else
"System Settings → Privacy & Security"
end

<<~EOS
#{@cask} is not signed and requires Accessibility access,
so you will need to re-grant Accessibility access every time the app is updated.

Enable or re-enable it in:
System Preferences → Security & Privacy → Privacy → #{access}
#{navigation_path} → #{access}
To re-enable, untick and retick #{@cask}.app.
EOS
end
Expand Down