diff --git a/images/macos/provision/core/commonutils.sh b/images/macos/provision/core/commonutils.sh index daa06627a..3519e9c1a 100644 --- a/images/macos/provision/core/commonutils.sh +++ b/images/macos/provision/core/commonutils.sh @@ -19,6 +19,22 @@ done # Execute AppleScript to change security preferences for virtualbox # System Preferences -> Security & Privacy -> General -> Unlock -> Allow -> Not now if is_Monterey; then + if is_Veertu; then + retry=10 + while [ $retry -gt 0 ]; do + { + osascript -e 'tell application "System Events" to get application processes where visible is true' + } && break + + retry=$((retry-1)) + if [ $retry -eq 0 ]; then + echo "No retry attempts left" + exit 1 + fi + sleep 10 + done + fi + osascript $HOME/utils/confirm-identified-developers.scpt $USER_PASSWORD fi