Skip to content

Commit

Permalink
Merge pull request #7652 from gibfahn/cask_caveat_unsigned_accessibility
Browse files Browse the repository at this point in the history
caveats: add an unsigned_accessibility caveat message
  • Loading branch information
MikeMcQuaid committed May 27, 2020
2 parents 0513771 + 3098c47 commit d9dc809
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Library/Homebrew/cask/dsl/caveats.rb
Original file line number Diff line number Diff line change
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.

<<~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}
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

0 comments on commit d9dc809

Please sign in to comment.