From 07db4731f6e6cbb4a679e62dc4b19046135b2c7f Mon Sep 17 00:00:00 2001 From: Chris Cuellar <58723+ChrisC@users.noreply.github.com> Date: Thu, 6 Feb 2025 15:36:33 -0800 Subject: [PATCH 1/2] disable MacOS notification center --- .github/workflows/voiceover-test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/voiceover-test.yml b/.github/workflows/voiceover-test.yml index 1f8b9ae..7c28a0d 100644 --- a/.github/workflows/voiceover-test.yml +++ b/.github/workflows/voiceover-test.yml @@ -152,6 +152,12 @@ jobs: - name: Configure VoiceOver not to "Automatically Speak Web Page" run: defaults write com.apple.VoiceOver4/default SCRCUserDefaultsAutomaticallySpeakWebPage 0 + # Ensure that VoiceOver doesn't automatically read through intrusive system + # notifications (such as "Background/Login Item Added" notifications) + # https://becomethesolution.com/mac/disable-mac-notification-center-permanently-terminal-command + - name: Disable MacOS Notifications + run: launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist; killall NotificationCenter + - name: Log job state RUNNING if: inputs.status_url run: './report-status.sh RUNNING "\"work_dir\": \"${ARIA_AT_WORK_DIR}\","' From 6cff234fca4e27917cf91ba193c25f065a28556d Mon Sep 17 00:00:00 2001 From: Chris Cuellar <58723+ChrisC@users.noreply.github.com> Date: Thu, 6 Feb 2025 16:13:07 -0800 Subject: [PATCH 2/2] remove killall command --- .github/workflows/voiceover-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/voiceover-test.yml b/.github/workflows/voiceover-test.yml index 7c28a0d..f7c7054 100644 --- a/.github/workflows/voiceover-test.yml +++ b/.github/workflows/voiceover-test.yml @@ -156,7 +156,7 @@ jobs: # notifications (such as "Background/Login Item Added" notifications) # https://becomethesolution.com/mac/disable-mac-notification-center-permanently-terminal-command - name: Disable MacOS Notifications - run: launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist; killall NotificationCenter + run: launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist - name: Log job state RUNNING if: inputs.status_url