From a4bbdf850035960af95ef034439bcfce3b065e7f Mon Sep 17 00:00:00 2001 From: moabits <45351488+moabits@users.noreply.github.com> Date: Fri, 4 Nov 2022 17:05:49 +0100 Subject: [PATCH 1/2] Update description for unsigned_accessibility caveat --- Library/Homebrew/cask/dsl/caveats.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cask/dsl/caveats.rb b/Library/Homebrew/cask/dsl/caveats.rb index 0436481f09..613324fd33 100644 --- a/Library/Homebrew/cask/dsl/caveats.rb +++ b/Library/Homebrew/cask/dsl/caveats.rb @@ -69,14 +69,20 @@ module Cask 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. + + if MacOS.version < :ventura + navigation_path = "System Preferences → Security & Privacy → Privacy" + else + navigation_path = "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 From b57cea84dda63e6d5d36381fea29337272e626e3 Mon Sep 17 00:00:00 2001 From: moabits <45351488+moabits@users.noreply.github.com> Date: Fri, 4 Nov 2022 17:36:47 +0100 Subject: [PATCH 2/2] Fix style --- Library/Homebrew/cask/dsl/caveats.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/cask/dsl/caveats.rb b/Library/Homebrew/cask/dsl/caveats.rb index 613324fd33..bc047275d0 100644 --- a/Library/Homebrew/cask/dsl/caveats.rb +++ b/Library/Homebrew/cask/dsl/caveats.rb @@ -71,10 +71,10 @@ module Cask caveat :unsigned_accessibility do |access = "Accessibility"| # access: the category in the privacy settings the app requires. - if MacOS.version < :ventura - navigation_path = "System Preferences → Security & Privacy → Privacy" + navigation_path = if MacOS.version < :ventura + "System Preferences → Security & Privacy → Privacy" else - navigation_path = "System Settings → Privacy & Security" + "System Settings → Privacy & Security" end <<~EOS