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: add an unsigned_accessibility caveat message #7652

Merged
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
13 changes: 13 additions & 0 deletions Library/Homebrew/cask/dsl/caveats.rb
Expand Up @@ -58,6 +58,19 @@ def eval_caveats(&block)
EOS
end

caveat :unsigned_accessibility do |access = "Accessibility"|
# access: the category in System Preferences -> Security & Privacy -> Privacy the app requires.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added this because there are other categories other than Accessibility, and I guess other apps might use different ones:

image


<<~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}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I considered actually running open /System/Library/PreferencePanes/Security.prefPane to open the pane for the user, but that would get run even if you run brew info AIUI, so decided against it.

Also didn't document that as having two ways to do the first step is needlessly confusing.

To re-enable untick and retick #{@cask}.app.
EOS
end

caveat :path_environment_variable do |path|
<<~EOS
To use #{@cask}, you may need to add the #{path} directory
Expand Down