Sublime Forum

Annoying MacOS Issue that I fixed

#1

I’ve had a really annoying issue with Sublime on my Macs that I just fixed, so I thought I’d share in case anyone else encounters it.

I install Sublime Text/Merge using HomeBrew. What I was finding was that I couldn’t double click things in the finder, or use “Open with”. It would LOOK like it was going to work and Sublime Text would come to the front, but the file wouldn’t open. I had to drag and drop files, or use “File -> Open” to open stuff.

In the end after much googling, removing the Quarntine Flag from the Sublime Binary by following the steps here has fixed it for me fully. Double clicking files associated with Sublime work perfectly now.

For future in case that blog goes away:

xattr /Applications/Sublime Text.app

If the com.apple.quarantine attribute is associated with the application, you should see the following output:

computername:Applications username$ xattr /Applications/Sublime Text.app
com.apple.quarantine
computername:Applications username$

To remove the quarantine attribute, you would then run the following command:

sudo xattr -r -d com.apple.quarantine /Applications/Sublime Text.app```
1 Like

#2

I think it’s possible to pre-emptively stop this happening at the Homebrew level by putting this in your shell profile:

export HOMEBREW_CASK_OPTS='--no-quarantine'

I don’t install ST as a Homebrew Cask personally, but do use that for other stuff.

2 Likes