qlmarkdown icon indicating copy to clipboard operation
qlmarkdown copied to clipboard

Not working on catalina public beta 3

Open nikdea opened this issue 5 years ago • 23 comments

This and other QL plugins are no longer recognized as created by an identified developer: "QLMarkdown.qlgenerator" was blocked from opening because it is not from an identified developer.

But I'm even not able to open it anyway for some reason.

nikdea avatar Aug 02 '19 10:08 nikdea

I suspect this might also need to be notarized.

danielcompton avatar Sep 27 '19 10:09 danielcompton

Not working on GA Catalina.

adityasrini avatar Oct 07 '19 23:10 adityasrini

怎么办呢怎么办,大佬们,macos15用不了啊

tfflyer avatar Oct 08 '19 13:10 tfflyer

Not working on Catalina 10.15 (19A583) image

zhaoyaqiong avatar Oct 09 '19 03:10 zhaoyaqiong

After modifying the source as described in https://github.com/anthonygelibert/QLColorCode/issues/51#issuecomment-541228682 I can use the resulting qlgenerator without problem on Catalina.

catalina.patch.txt

stefanwascoding avatar Oct 19 '19 14:10 stefanwascoding

Thank you! This worked perfectly for me and I can now quicklook markdown again.

tthkbw avatar Oct 21 '19 17:10 tthkbw

Hi, just installed the latest release, but it's still not working on Catalina 10.15 (19A602)

diliedevs avatar Oct 27 '19 08:10 diliedevs

@diliedevs Weird, it no longer works for me either. Can you try with this one? It works for me even after qlmanage reset and computer restart. But I want be sure thats not only work on my mac.

QLMarkdown.qlgenerator.zip

Do not forget qlmanage -r

tattali avatar Oct 27 '19 11:10 tattali

Yes, the new one works! Thanks for fixing this... having trouble with all my quicklook plugins. Yours is only the second one to be fixed. Thanks!!

diliedevs avatar Oct 27 '19 16:10 diliedevs

Thanks to @stefanwascoding answer

tattali avatar Oct 27 '19 20:10 tattali

FYI: I had to download the release with Safari, with Chrome it wouldn't work on Catalina. You can check using codesign -vvv --deep --strict /path/to/QLMarkdown.qlgenerator if the binary is valid. It should print out

QLMarkdown.qlgenerator: valid on disk
QLMarkdown.qlgenerator: satisfies its Designated Requirement

When downloading with Chrome i had an QLMarkdown.qlgenerator: unsealed contents present in the bundle root error.

bnussbau avatar Oct 29 '19 10:10 bnussbau

It seems thats the quick look should be notarized with 99$ fee.

You can try this: https://github.com/toland/qlmarkdown/pull/91#issuecomment-549128151

Or also:

$ open ~/Library/QuickLook/QLMarkdown.qlgenerator/Contents/MacOS/

right click open on the binary then in the Preferences panel > go to Security & Privacy > and click on Allow QLMarkdown then if needed re run qlmanage

qlmanage -r

If you find an other way please share it

tattali avatar Oct 29 '19 11:10 tattali

Has anyone tried to see if it works on 10.15.1? I updated my virtual machine and it seems that now the various qlgenerators works but I'm not sure if I did something strange in the settings or if it's a problem solved in the last update.

sbarex avatar Oct 30 '19 09:10 sbarex

Has anyone tried to see if it works on 10.15.1?

@sbarex Updated macOS ... QLMarkdown (compiled from source) is still running.

stefanwascoding avatar Oct 30 '19 10:10 stefanwascoding

Got it working on MacOS Catalina (10.15) with the patch provided above.

Here's an exact recipe for those interested:

# Get source code
git clone https://github.com/toland/qlmarkdown
cd qlmarkdown

# Update to latest discount library (Per QLMarkdown's Readme.markdown guide)
./discount-config/update-discount.sh

# Install patch for MacOS Catalina
curl -L -O https://github.com/toland/qlmarkdown/files/3746764/catalina.patch.txt
git apply catalina.patch.txt

# Build and install
xcrun xcodebuild
cp -R ./build/Release/QLMarkdown.qlgenerator ~/Library/QuickLook/

# Reset QuickLook cache and relaunch Finder
qlmanage -r
sudo killall Finder

Update: Script has been updated per @Neberheim.

parleer avatar Nov 05 '19 16:11 parleer

@parleer running wget as written returned a "missing URL" error. Worked around it by downloading through browser and placing it manually. I was also not able to copy the directory using cp and had to drag & drop through the Finder, strangely. Also Finder is the correct case for the process. Got it up and running with the workarounds though, thanks!

Neberheim avatar Nov 06 '19 18:11 Neberheim

@parleer running wget as written returned a "missing URL" error. Worked around it by downloading through browser and placing it manually. I was also not able to copy the directory using cp and had to drag & drop through the Finder, strangely. Also Finder is the correct case for the process. Got it up and running with the workarounds though, thanks!

@Neberheim Sorry, I wast trying to re-create my steps and missed a few things. I've updated the script and it should work now. Not sure why you were running into trouble with cp though.

parleer avatar Nov 06 '19 19:11 parleer

@parleer It's a permissions issue it turns out, but giving iTerm full disk access in the Privacy system preference and doing the same with Terminal still yielded no results, even with sudo. Interestingly, while no exit message was returned with qlmarkdown as the working directory, sending it from my home directory returned cp: /Library/QuickLook/QLMarkdown.qlgenerator: Permission denied

So strangely ~ % sudo cp -R ~/qlmarkdown/build/Release/QLMarkdown.qlgenerator [...] ended up working properly, even though qlmarkdown % sudo cp [...] did not.

Since it's outside the purview of this thread, I'll leave it at that and investigate elsewhere.

Neberheim avatar Nov 06 '19 19:11 Neberheim

You can get the version in homebrew to work by removing the quarantine attribute from the cask file like this: xattr -d com.apple.quarantine /usr/local/Caskroom/qlmarkdown/1.3.6/QLMarkdown.qlgenerator

jackStalnaker avatar Nov 15 '19 15:11 jackStalnaker

I get this error after trying to install the patch:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

brad-provident avatar Dec 05 '19 18:12 brad-provident

@brad-provident Run xcode-select --install to install Command Line Tools

parleer avatar Dec 13 '19 18:12 parleer

Hi, here is the most common solution. Before doing this, make sure that the plug-in is installed and that you have tried to preview a valid markdown file.

tattali avatar Jan 13 '20 01:01 tattali

or as noted later in the thread, run xattr -cr ~/Library/QuickLook/QLMarkdown.qlgenerator. Though it should be enough to run it on the zip file before extracting.

You can even create an Automator action and add it to your right click menu, e.g. "remove extended attributes". ;)

screen

relikd avatar Jan 16 '20 10:01 relikd