From b5502db9ebfeed459ec966771e2dba6178bbb37c Mon Sep 17 00:00:00 2001 From: Sun Knudsen Date: Mon, 5 Apr 2021 18:28:39 -0400 Subject: [PATCH] Fixed launchctl unload -w bug --- .../README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/how-to-make-sure-app-is-not-running-in-the-background-on-macos/README.md b/how-to-make-sure-app-is-not-running-in-the-background-on-macos/README.md index 0f87d34..96e1b05 100644 --- a/how-to-make-sure-app-is-not-running-in-the-background-on-macos/README.md +++ b/how-to-make-sure-app-is-not-running-in-the-background-on-macos/README.md @@ -63,8 +63,8 @@ com.adobe ```shell BUNDLE_IDENTIFIER_PREFIX="com.adobe" -launchctl unload -w {,~}/Library/LaunchAgents/$BUNDLE_IDENTIFIER_PREFIX*.plist -sudo launchctl unload -w /Library/LaunchDaemons/$BUNDLE_IDENTIFIER_PREFIX*.plist +sudo launchctl unload -w /Library/{LaunchAgents,LaunchDaemons}/$BUNDLE_IDENTIFIER_PREFIX*.plist +launchctl unload -w ~/Library/LaunchAgents/$BUNDLE_IDENTIFIER_PREFIX*.plist ``` ### Step 3: disable app extensions