QLColorCode icon indicating copy to clipboard operation
QLColorCode copied to clipboard

Not working on Big Sur 11.2?

Open orome opened this issue 5 years ago • 11 comments

Has this been fixed? I don't see any open issue on this anymore, but get security warnings when I try to launch.

orome avatar Feb 16 '21 15:02 orome

When I installed this from home-brew I had to use the following command to bypass Apple's quarantine/gatekeeper system for the Quicklook plugin: xattr -cr ~/Library/QuickLook/QLColorCode.qlgenerator/

atommclain avatar Feb 22 '21 22:02 atommclain

@atommclain thank you that fixed it for me!

jaymegordo avatar Feb 24 '21 18:02 jaymegordo

I dont get any security warnings after running the above command, but I dont see any preview, its just blank white

PS OSX 11.2 on M1

im-AMS avatar Mar 18 '21 12:03 im-AMS

Same as @im-AMS No error reported but a white screen :/ Capture d’écran 2021-03-23 à 11 25 15

Canadadry avatar Mar 23 '21 10:03 Canadadry

This is caused by sandboxing:

Sandbox: ExternalQuickLoo(32569) deny(1) user-preference-read org.n8gray.QLColorCode

rejecting read of { org.n8gray.QLColorCode, thom, kCFPreferencesAnyHost, /Users/thom/Library/Preferences/org.n8gray.QLColorCode.plist, managed: 0 } from process 32569 (ExternalQuickLookSatellite-x86_) because accessing preferences outside an application's container requires user-preference-read or file-read-data sandbox access

Couldn't read values in CFPrefsPlistSource<0x7f849df24e50> (Domain: org.n8gray.QLColorCode, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: Yes): accessing preferences outside an application's container requires user-preference-read or file-read-data sandbox access

deepxg avatar Mar 26 '21 10:03 deepxg

It appears to be enough to grant full disk access to the following executables:

  1. ~Library/QuickLook/QLColorCode.qlgenerator/Contents/MacOS/QLColorCode
  2. ~Library/QuickLook/QLColorCode.qlgenerator/Contents/Resources/highlight

deepxg avatar Mar 26 '21 10:03 deepxg

@deepxg How is that done? Is it safe?

orome avatar Mar 26 '21 13:03 orome

I have added those executables under full disk access...no luck :/ How ever I ran this, and this is what I get


qlmanage -p test.py

2021-04-16 19:18:03.832 qlmanage[6723:130600] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x6b07, name = 'com.apple.coredrag' See /usr/include/servers/bootstrap_defs.h for the error codes.

2021-04-16 19:18:03.849 qlmanage[6723:130600] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x830b, name = 'com.apple.tsm.portname' See /usr/include/servers/bootstrap_defs.h for the error codes.


im-AMS avatar Apr 16 '21 13:04 im-AMS

@im-AMS @Canadadry

Adapted from here:


If you run into issues with macOS not letting you run the plugin because it's not signed by a verified developer you can follow these steps:

  1. Install the plugin.
  2. On your terminal, run xattr -cr ~/Library/QuickLook/QLColorCode.qlgenerator (use sudo if needed).
  3. run qlmanage -r
  4. run qlmanage -r cache
  5. Restart Finder by... a) Restarting your computer b) or holding down the option key and right click on Finder’s dock icon, then select “Relaunch” from the menu

pagelab avatar Apr 30 '21 20:04 pagelab

@pagelab Still got no luck :/ Im not having any permission issues, its all running fine except when it previews I get a Blank White preview

im-AMS avatar May 01 '21 04:05 im-AMS

Switch to https://github.com/sbarex/SourceCodeSyntaxHighlight - it's much better supported in Big Sur + with M1 Macs. qlgenerator plugins are apparently deprecated as Apple wants folks to switch to App Extensions. Syntax-Highlight is a proper extension and works pretty much as expected how QLColorCode used to.

dgattey avatar May 25 '21 17:05 dgattey