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!
2 Answers
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
-
1@Tetsujin and Udhy - This command looks familiar from the last time I used OS X (El Capitan back in 2016!). Ironically, I've just realised that this isn't the massive issue that it first seemed to be, since I now have all apps that I need installed and not nagging me. But if/when I find the need to install another, I'll let you guys know if it does indeed work. However, Udhy can have the accepted answer rep for now :-) Tetsujin, thanks anyway for trying to help and for being "fastest gun in the west"...perhaps the fastest gun I've ever seen on a SE site!– Kenny83Oct 21, 2019 at 17:56
-
Hmm...nope that command doesn't actually seem to have helped - just downloaded a new .pkg installer and still got the dialog, even after right-clicking as suggested by @Tetsujin :-( I guess I can live with the annoyance of the popup dialog now, since I will rarely download/install anything else on this Mac. Just wanted to warn future readers that another solution is necessary.– Kenny83Oct 30, 2019 at 12:43
-
1Thank you!
xattr -d com.apple.quarantine MyApp.app
was the only way to allow my application to access its resource files. Apparently the quarantine flag preventschdir
calls, which I use to load resources in the directory adjacent to the app. Is this why everyone releases Mac software in dmg images, to avoid Apple stupidly tagging everything extracted from zip files? Such a pain. May 7, 2020 at 6:07
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
-
Dude, I would seriously give you +1000 votes if I could. Will definitely accept this answer as soon as I'm able (in 6 minutes apparently lol). Thank you so much!– Kenny83Oct 21, 2019 at 16:02
-
Actually it seems as though disabling SIP on Mojave doesn't actually bring back that "anywhere" option...I've disabled it, restarted and still can't allow from anywhere :-(– Kenny83Oct 21, 2019 at 16:31
-
hmmm… maybe I also did this… apple.stackexchange.com/a/198123/85275 - adding to answer– TetsujinOct 21, 2019 at 16:35
-
-
Wish you luck - let us know how it goes. The pic, btw, was from my own Mojave Mac, so I've obviously managed to do it at some point… I just don't remember quite how ;)– TetsujinOct 21, 2019 at 16:58