Disable the use of the “com.apple.quarantine” extended attribute on Mojave
-
24-05-2021 - |
题
I recently got Mojave. Could somebody tell me whether it's possible to disable the use of the "com.apple.quarantine" extended attribute, for all apps that I have now or will ever download in the future? Thanks!
解决方案
If I understood your question clearly, here is the solution that you can use to disable it completely.
- Open Terminal
Type following command
sudo defaults write com.apple.LaunchServices LSQuarantine -bool NO
- After that, reboot, and you should be set.
If you want to disable quarantine for files already downloaded
- Open Terminal.
Execute the following command:
xattr -l /path/to/application/applicationName.app
You will see output similar to:
To remove an extended attribute manually, type the following command in Terminal
xattr -d com.apple.quarantine /path/to/application/applicationName.app
其他提示
First run, instead of double-clicking, right click & select Open.
Done.
Alternatively, disable SIP & you get this option back, in Security & Privacy…
… though you still get some 'are you sure?' messages, you can just say 'OK'
After comments: You may also need to set this in Terminal
sudo defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool NO