MacOS – Disabling Use of ‘com.apple.quarantine’ Extended Attribute on Mojave

extended-attributesmacosmojaveSecurity

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!

Best Answer

If I understood your question clearly, here is the solution that you can use to disable it completely.

  1. Open Terminal
  2. Type following command

    sudo defaults write com.apple.LaunchServices LSQuarantine -bool NO
    
  3. After that, reboot, and you should be set.

If you want to disable quarantine for files already downloaded

  1. Open Terminal.
  2. Execute the following command:

    xattr -l /path/to/application/applicationName.app
    
  3. You will see output similar to:

    enter image description here

To remove an extended attribute manually, type the following command in Terminal

   xattr -d com.apple.quarantine /path/to/application/applicationName.app