Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working on Big Sur 11.2? #84

Open
orome opened this issue Feb 16, 2021 · 11 comments
Open

Not working on Big Sur 11.2? #84

orome opened this issue Feb 16, 2021 · 11 comments

Comments

@orome
Copy link

orome commented Feb 16, 2021

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

@atommclain
Copy link

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/

@jaymegordo
Copy link

@atommclain thank you that fixed it for me!

@im-AMS
Copy link

im-AMS commented Mar 18, 2021

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

@Canadadry
Copy link

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

@deepxg
Copy link

deepxg commented Mar 26, 2021

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
Copy link

deepxg commented Mar 26, 2021

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

@orome
Copy link
Author

orome commented Mar 26, 2021

@deepxg How is that done? Is it safe?

@im-AMS
Copy link

im-AMS commented Apr 16, 2021

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.


@pagelab
Copy link

pagelab commented Apr 30, 2021

@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

@im-AMS
Copy link

im-AMS commented May 1, 2021

@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

@dgattey
Copy link

dgattey commented May 25, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants