[macOS] Enable voiceover if SIP is disabled (#4805)

* Enable voiceover if SIP is disabled

* Replace touch with `echo -n "a"`

The file should contain `a` symbol

Co-authored-by: Craig Morten <cmorten@users.noreply.github.com>

* Wrap sudo call into bash -c

Co-authored-by: Craig Morten <cmorten@users.noreply.github.com>
This commit is contained in:
Mikhail Timofeev
2021-12-27 18:17:25 +03:00
committed by GitHub
parent ddf7ca4328
commit 3ff9488146

View File

@@ -17,6 +17,11 @@ if [ -d "/Library/Application Support/VMware Tools" ]; then
sudo "/Library/Application Support/VMware Tools/vmware-resolutionSet" 1176 885
fi
# Update VoiceOver Utility to allow VoiceOver to be controlled with AppleScript by creating a special file (SIP must be disabled)
if csrutil status | grep -Eq "System Integrity Protection status: (disabled|unknown)"; then
sudo bash -c 'echo -n "a" > /private/var/db/Accessibility/.VoiceOverAppleScriptEnabled'
fi
# https://developer.apple.com/support/expiration/
# Enterprise iOS Distribution Certificates generated between February 7 and September 1st, 2020 will expire on February 7, 2023.
# Rotate the certificate before expiration to ensure your apps are installed and signed with an active certificate.