Not working on Big Sur 11.2?
Has this been fixed? I don't see any open issue on this anymore, but get security warnings when I try to launch.
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 thank you that fixed it for me!
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
Same as @im-AMS
No error reported but a white screen :/

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
It appears to be enough to grant full disk access to the following executables:
-
~Library/QuickLook/QLColorCode.qlgenerator/Contents/MacOS/QLColorCode -
~Library/QuickLook/QLColorCode.qlgenerator/Contents/Resources/highlight
@deepxg How is that done? Is it safe?
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 @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:
- Install the plugin.
- On your terminal, run
xattr -cr ~/Library/QuickLook/QLColorCode.qlgenerator(usesudoif needed). - run
qlmanage -r - run
qlmanage -r cache - 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 Still got no luck :/ Im not having any permission issues, its all running fine except when it previews I get a Blank White preview
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.