whomwah / qlstephen

A QuickLook plugin that lets you view plain text files without a file extension

Home Page:https://github.com/whomwah/qlstephen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

macOS X 10.15 Catalina support?

silviu-bucsa opened this issue · comments

On the Public betas of Mac OS X QLStephen.qlgenerator stopped working. I've attached a screenshot with the message I'm receiving:

Screenshot 2019-07-09 at 08 58 07

I haven't found a workaround.

Thank you.

This is probably because of notarization enforcement. The binary just needs to be notarized by Apple. (Which I believe requires their $99 developer program subscription.)

In the mean time, to get around this, you can go to the folder (⌘⇧G from Finder) ~/Library/Quicklook/QLStephen.qlgenerator/Contents/MacOS/ and right-click QLStephen, selecting Open. This will give you the option to open it anyway, and it should load correctly in the future.

In the mean time, to get around this, you can go to the folder (⌘⇧G from Finder) ~/Library/Quicklook/QLStephen.qlgenerator/Contents/MacOS/ and right-click QLStephen, selecting Open. This will give you the option to open it anyway, and it should load correctly in the future.

This doesn't work for me.

On the latest beta you can get by it by going to Security in system preferences after you try and open it once and hit "Allow Anyway". Still would love to see it notarized properly.

This is probably because of notarization enforcement. The binary just needs to be notarized by Apple. (Which I believe requires their $99 developer program subscription.)

Not gonna lie this sounds like extortion. Open source developers should be able to freely ship their code when end users fully understand and accept the risks of using such code.

EDIT: @samcat116 cleared this up in the subsequent comment.

Notarization does not require the $99/yr subscription. Just needs an Developer Apple ID and Xcode .

On the latest beta you can get by it by going to Security in system preferences after you try and open it once and hit "Allow Anyway". Still would love to see it notarized properly.

I tried qlmanage -p README.MD for a readme file. I don't get the warning to move the plugin to the Trash, but I now get an error message in the console and the file appears the way it did if I never installed this plugin (plain text).

Testing Quick Look preview with files:
	README.MD
2019-10-07 20:18:17.998 qlmanage[32498:129283] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x6f07, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2019-10-07 20:18:18.054 qlmanage[32498:129283] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xb01f, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.

On a related note, I see this message when I try the same thing for a json file with a json reading plugin. this preview cannot be safely displayed in quick look

Just updated my operating system and got this message:

image

Same here, just updated to Catalina yesterday and QLStephen stopped working.
Please update it in order to be compatible with Catalina.

Please use thumbs up instead of "+1" or "me too" comments. They often add no value, clutter the issue's discussions, and generate unnecessary notifications to all participants, including the project's maintainers.

Screen Shot 2019-10-09 at 2 36 56 PM

@samcat116 This is what I get when I follow the instructions on this page. The app in the screen shot is an freshly created, properly code signed app that meets all of the notarization requirements. If you know something I don't I would love to be proven wrong, but from all the resources I've come across and my own personal experience it seems that the paid Apple Developer Program membership is a necessary part of notarization.

Can you try with the CLI?
As per Notarize Your Preexisting Software under Notarizing Your App Before Distribution, you can try to Upload Your App to the Notarization Service using altool

It might look more complex, but could you give it a shot and try it out.

Screen Shot 2019-10-09 at 4 07 55 PM

@KoCMoHaBTa When following those instructions, the Archive Post-action script that it gives doesn't even export the zip file that it is supposed to export. I made my own zip file instead, tried uploading it, and got this error. I find it weird that there is a space between "provider" and the period following it, like there is supposed to be a provider name there. The command I ran is exactly the command given in the instructions (except for the file name of course). I'm not entirely sure what a provider is in this context, but I'm guessing it's related to ADP membership.

@partheseas Check this out - https://forums.developer.apple.com/thread/119445
Looks like the message is misleading and for some reason, the tool cannot find this provider automatically.
So you have to specify it as the --asc-provider parameter, part of altool command.
In order to find your provider name - check the first post from eskimo on this thread - https://forums.developer.apple.com/thread/113798

commented

watching……

Simply cross-referencing similar issues in other QuickLook plugins in case a solution surfaces somewhere :

Also, there seems to be changes in Catalina beyond notarization breaking the plugins.

Note that sudo qlmanage -p README.md works for me, with SIP and notarization disabled (with csrutil disable and sudo spctl --master-disable).

Is the move forward to publish a version that is notarized? Or is it a different issue?

So I tried notarizing one of the plugins with my paid developer account, and it doesn't seem to accept .qlgenerator files

I ran the xcrun alttool command, and got an error like

 1 package(s) were not uploaded because they had problems:
	/var/folders/nz/nlsr_8yn2tdblj6fcfyylv140000gn/T/62F12993-D9CA-4467-829C-0460DC836E3A/com.fiatdev.QLMarkdown.itmsp - Error Messages:
		ERROR ITMS-4064: "File extension of file 'QLMarkdown' is invalid for this software; use 'zip,pkg,dmg' instead." at SoftwareAssets/EnigmaSoftwareAsset
2019-10-15 17:40:56.282 altool[3526:23550] *** Error: ERROR ITMS-4064: "File extension of file 'QLMarkdown' is invalid for this software; use 'zip,pkg,dmg' instead." at SoftwareAssets/EnigmaSoftwareAsset

There seems to be no documentation online on notarizing QuickLook plugins either.

I hope description on this site might be useful.
https://glyphsapp.com/tutorials/how-to-notarize-your-plug-ins

Thanks @KoCMoHaBTa @ahmetgeymen, I'll try this again in the coming weekend.

In the mean time, to get around this, you can go to the folder (⌘⇧G from Finder) ~/Library/Quicklook/QLStephen.qlgenerator/Contents/MacOS/ and right-click QLStephen, selecting Open. This will give you the option to open it anyway, and it should load correctly in the future.

it works for me at macOS 10.15.

QL插件都在~/Library/QuickLook/目录,但从系统设置->拓展->快速查看,却没有允许使用此目录,但其中包含了/System/Library/Frameworks/RealityKit.framework内的几个插件。
brew cask 不允许使用root,并且/System/Library/Frameworks/RealityKit.framework只读。
很烦~ :(

@samcat116

Notarization does not require the $99/yr subscription. Just needs an Developer Apple ID and Xcode .

You are kidding right? You only get a valid developer id, when you pay $99 for the Apple Developer program.

~/Library/Quicklook/QLStephen.qlgenerator/Contents/MacOS/

In the mean time, to get around this, you can go to the folder (⌘⇧G from Finder) ~/Library/Quicklook/QLStephen.qlgenerator/Contents/MacOS/ and right-click QLStephen, selecting Open. This will give you the option to open it anyway, and it should load correctly in the future.

it works for me at macOS 10.15.

not for me. What else did you do?

not for me. What else did you do?

I had to go to Security & Privacy in System Preferences right after you get an error message and I could whitelist it from there. I think I went: Quicklook -> error -> Security panel -> Quicklook again -> additional confirmation dialog and then it worked.

For me just asked me in the begging to approve, after that, it's not showing that normal window approve in sucurity.
This path I could not find it: Quicklook -> error -> Security panel -> Quicklook again ->
suggestions ?

Sorry that was unclear. I mean that I triggered an error by trying to quicklook a file using QLStephen and after that I could go to the security settings to approve it etc

Sorry for this questions again...
Ok, If I got your logic, I run this:

root@MacBookPro _FILMs # qlmanage -p Test.mkv                                 
Testing Quick Look preview with files:
	Test.mkv
2019-10-22 13:01:01.845 qlmanage[11471:2293464] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x6e03, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2019-10-22 13:01:01.884 qlmanage[11471:2293464] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x1431f, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.

After that, nothing show up.

Perhaps an inspiration to port this to the new system can be found here anthonygelibert/QLColorCode#51

~/Library/Quicklook/QLStephen.qlgenerator/Contents/MacOS/

In the mean time, to get around this, you can go to the folder (⌘⇧G from Finder) ~/Library/Quicklook/QLStephen.qlgenerator/Contents/MacOS/ and right-click QLStephen, selecting Open. This will give you the option to open it anyway, and it should load correctly in the future.

it works for me at macOS 10.15.

not for me. What else did you do?

I don't know how it happened. I tried to uninstall it and then do the same thing again, but after deleting it , the md file still can be preivewed. It confused me.

Oh, maybe the Xcode, because it suggests me to open with it.
ps: I installed the Xcode yesterday.

Do you have a Apple paid dev account? That according to what I'm reading can make a huge difference.

So I was successfully able to notarise the plugin, using the steps here. Unfortunately, the signed binary still didn't work in Catalina (atleast QLMarkdown, which I tested). I didn't get security related errors, but it just failed to work.

I think these plugins will have to be re-written as System Extensions to work in Catalina.

commented

Solution that did a trick for me:

  1. Disable Gatekeeper (Terminal > sudo spctl --master-disable)
  2. Check: .ipa preview works
  3. Enable Gatekeeper (Terminal > sudo spctl --master-enable)
  4. Open 'System Preferences' > 'Security & Privacy' > General tab >> you will see a message at the bottom, 'QLStephen.qlgenerator was blocked from opening because it is not from an identified developer.' > Click on 'Open anyway'
  5. It works now with enabled Gatekeeper

2. Check: .ipa preview works

What do you mean about "Check: .ipa preview works" ?

I downloaded an .ipa app and pressed Space in Finder, nothing shows up, and tried: qlmanage -p -d1 Downloads/File.ipa and still, nothing is coming to ask me the permission on the System Preferences' > 'Security & Privacy'.

suggestions?

commented

It's an additional step, just to make sure that preview works.

After disabling Gatekeeper you need to restart Finder to be able to see the .ipa preview.
To restart Finder: hold 'option' button and right click on Finder icon in Dock > click Relaunch

And then after enabling Gatekeeper (and clicking on 'Open anyway') you need to restart Finder again.

I did all of that but still doesn't show anything. Also, I did a test with a zip file with the BetterZip quick preview and also is not working.
Screen Shot 2019-10-24 at 11 11 39

What else I'm missing?

commented

Preview of zip files doesn't fork for me as well now.
But ipa - works.

If you want to see preview of archive formats you can try this:
https://macitbetter.com/BetterZip-Quick-Look-Generator/

Install it > Launch > Relaunch Finder > Try zip preview

I did that already too, but still shows that error above.

commented

Because of Gatekeeper.

Please follow the steps above, and you should get it working.
Screenshot 2019-10-24 at 11 43 39 AM

Still. there is something else that you have done in yours that I didn't in mine.
Do you need to have the Xcode installed?
have you done this too: sudo csrutil disable ?

I consider myself pretty smart, so I'm doing what you are saying to do.

commented

Yes, I have Xcode installed, but I think it doesn't matter.
No, 'sudo csrutil disable' didn't do.

I'm sure it should work with disabled Gatekeeper, so check the preview functionality when you have this:
Unknown-2
(and don't forget to relaunch Finder)

PS: the files with .md and .ipa the previews are working, but not the .apk .zip .mkv .json .js .mp3.
All the QuickPreview extensions were installed by the same way.

Yes, I have Xcode installed, but I think it doesn't matter.
No, 'sudo csrutil disable' didn't do.

I'm sure it should work with disabled Gatekeeper, so check the preview functionality when you have this:
Unknown-2
(and don't forget to relaunch Finder)

yeap, that it my case, even after reboot and still.

Screen Shot 2019-10-24 at 13 03 49

commented

Hm...

Not sure, but maybe try to update Homebrew.

have done that too.

:(

I've been experimenting with a fresh macOS Catalina install on a vm and these are the steps I can reliably make QLStephen work:

  1. brew cask install qlstephen
  2. Restart Finder
  3. Open a finder window and navigate to any folder that contains a plaintext file qlstephen tries to generate a preview for. Maybe you need to trigger Quicklook explicitly by selecting the file and hitting space.
  4. This will generate an error message saying the developer can't be verified. From "move to trash" and "cancel" choose "cancel"
  5. Open System Preferences -> Security & Privacy and under the General tab at the Botton click "Allow anyway"
  6. Log out and log back in
  7. Repeat step 3
  8. In the warning message that now appears choose "open"

Everything should be working now. If you don't have a clean install and you can't trigger the first error message anymore I would uninstall QLStephen first and restart your Mac.

Btw, depending on factors I'm not entirely sure about you can sometimes skip step 2 and/or 6

I've been experimenting with a fresh macOS Catalina install on a vm and these are the steps I can reliably make QLStephen work:

  1. brew cask install qlstephen
  2. Restart Finder
  3. Open a finder window and navigate to any folder that contains a plaintext file qlstephen tries to generate a preview for. Maybe you need to trigger Quicklook explicitly by selecting the file and hitting space.
  4. This will generate an error message saying the developer can't be verified. From "move to trash" and "cancel" choose "cancel"
  5. Open System Preferences -> Security & Privacy and under the General tab at the Botton click "Allow anyway"
  6. Log out and log back in
  7. Repeat step 3
  8. In the warning message that now appears choose "open"

Everything should be working now. If you don't have a clean install and you can't trigger the first error message anymore I would uninstall QLStephen first and restart your Mac.

Btw, depending on factors I'm not entirely sure about you can sometimes skip step 2 and/or 6

Try this and not work for QLimagesize

I've been experimenting with a fresh macOS Catalina install on a vm and these are the steps I can reliably make QLStephen work:

  1. brew cask install qlstephen
  2. Restart Finder
  3. Open a finder window and navigate to any folder that contains a plaintext file qlstephen tries to generate a preview for. Maybe you need to trigger Quicklook explicitly by selecting the file and hitting space.
  4. This will generate an error message saying the developer can't be verified. From "move to trash" and "cancel" choose "cancel"
  5. Open System Preferences -> Security & Privacy and under the General tab at the Botton click "Allow anyway"
  6. Log out and log back in
  7. Repeat step 3
  8. In the warning message that now appears choose "open"

Everything should be working now. If you don't have a clean install and you can't trigger the first error message anymore I would uninstall QLStephen first and restart your Mac.

Btw, depending on factors I'm not entirely sure about you can sometimes skip step 2 and/or 6

Guys, sorry but I lost my brain, there is something that we are missing.
I did also a new VM, and did this:

`
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew cask install betterzip
created a test .zip
test pressing Space
nothing happened
relunched Finder
nothing happened
opened once the Betterzip unckecking everything
test pressing Space
nothing happened
relunched Finder
Worked

brew cask install QuickNFO
created a test .nfo
test pressing Space
nothing happened
relunched Finder
nothing happened
brew cask install qlcolorcode
created a test .js
test pressing Space
nothing happened
relunched Finder
error about permission show up
authorized in Settings/Security
test pressing Space
nothing happened
relunched Finder
nothing happened
restarted the VM
error about permission show up / clicked open
test pressing Space
this error below show up
Screen Shot 2019-10-25 at 9 29 05 AM
brew cask install quicklook-json
created a test .js
test pressing Space
nothing happened
relunched Finder
Worked
but....after other instalation below, this stopped to work. What is the logic?

brew cask install qlimagesize
created a test .nfo
test pressing Space
nothing happened
relunched Finder
nothing happened

brew cask install quicklook-csv
created a test .nfo
test pressing Space
nothing happened
relunched Finder
nothing happened

brew cask install suspicious-package
created a test .zip
test pressing Space
nothing happened
relunched Finder
nothing happened
opened once the suspicious-package app
test pressing Space
nothing happened
relunched Finder
Worked

brew cask install qlstephen
created a test README
test pressing Space
nothing happened
relunched Finder
error about permission show up
authorized in Settings/Security
test pressing Space
nothing happened
relunched Finder
nothing happened
restarted the VM
error about permission show up / clicked open
test pressing Space
this error below show up
Screen Shot 2019-10-25 at 12 46 27 PM

`

like...in my real computer, the only thing that it's working is:
qlmarkdown
suspicious-package
provisionql
QuickLookAddict

So....what are we missing?

Hi there,

The box "qlstephen cannot be opened because its from an unidentified developer" with button "OPEN ANYWAY" wasn't appearing in my Security and privacy.

I managed to make it work in my machine doing this:

  • brew cask reinstall qlstephen
  • Relaunch Finder
  • sudo spctl --master-disable # disable gatekeeper
  • ensure that it works by doing a quicklook on a random file
  • sudo spctl --master-enable # plug gatekeeper back
  • then opening the "Security and Privacy" did contain the "OPEN ANYWAY" button on the bottom

Cheers,

commented

@jorge-d Doesn't work.

commented

I've been following and attempting most of the suggested solutions without any success... until just now. I did the following:

  • open ~/Library/QuickLook/ and removed QLMarkdown.qlgenerator, which I was about to reinstall. It probably makes sense to delete any non-working .qlgenerator.
  • ran qlmanage -r
  • relaunched finder
  • reinstalled quicklook plugin(s)
  • ran qlmanage -r + relaunched finder
  • invoked quicklook on a few files.
    NOTE: it didn't immediately seem to work so I repeated the previous step 1-2 times. After relaunching finder for the 2-3rd time and invoking quicklook it decided to work.

Removing and reinstalling quicklook plugins seemed to make the difference. That and attempting to reload quicklook + relaunch finder multiple times. Sorry for the non-specific potential fix but hope it helps someone. It's been driving me crazy.

no lock from me again.

In the mean time, to get around this, you can go to the folder (⌘⇧G from Finder) ~/Library/Quicklook/QLStephen.qlgenerator/Contents/MacOS/ and right-click QLStephen, selecting Open. This will give you the option to open it anyway, and it should load correctly in the future.

For me this was not enough. I had to open the binary like this and also open the bundle. Right-click QLStephen.qlgenerator and open with BBEdit, accept the warning. Now it works.

In the mean time, to get around this, you can go to the folder (⌘⇧G from Finder) ~/Library/Quicklook/QLStephen.qlgenerator/Contents/MacOS/ and right-click QLStephen, selecting Open. This will give you the option to open it anyway, and it should load correctly in the future.

For me this was not enough. I had to open the binary like this and also open the bundle. Right-click QLStephen.qlgenerator and open with BBEdit, accept the warning. Now it works.

I did that and still doens't work for me.

commented

simple way to fix this warning is to run xattr -d com.apple.quarantine ~/Library/QuickLook/QLStephen.qlgenerator

simple way to fix this warning is to run xattr -d com.apple.quarantine ~/Library/QuickLook/QLStephen.qlgenerator

no success here.

I've been following and attempting most of the suggested solutions without any success... until just now. I did the following:

  • open ~/Library/QuickLook/ and removed QLMarkdown.qlgenerator, which I was about to reinstall. It probably makes sense to delete any non-working .qlgenerator.
  • ran qlmanage -r
  • relaunched finder
  • reinstalled quicklook plugin(s)
  • ran qlmanage -r + relaunched finder
  • invoked quicklook on a few files.
    NOTE: it didn't immediately seem to work so I repeated the previous step 1-2 times. After relaunching finder for the 2-3rd time and invoking quicklook it decided to work.

Removing and reinstalling quicklook plugins seemed to make the difference. That and attempting to reload quicklook + relaunch finder multiple times. Sorry for the non-specific potential fix but hope it helps someone. It's been driving me crazy.

Hi there,

The box "qlstephen cannot be opened because its from an unidentified developer" with button "OPEN ANYWAY" wasn't appearing in my Security and privacy.

I managed to make it work in my machine doing this:

  • brew cask reinstall qlstephen
  • Relaunch Finder
  • sudo spctl --master-disable # disable gatekeeper
  • ensure that it works by doing a quicklook on a random file
  • sudo spctl --master-enable # plug gatekeeper back
  • then opening the "Security and Privacy" did contain the "OPEN ANYWAY" button on the bottom

Cheers,

After tried those two suggestions, qlstephen seems to works fine. Thank.

I have a feeling two problems are conflated here:

  • QLStephen not working at all
  • QLStephen not working for certain file types.

I just did some tinkering and realized that QLStephen will work on non-suffixed files following this suggestion: #81 (comment)
However, QLStephen won’t work for files with arbitrary extensions – .fea in my case.

I tried re-assigning the default opening application – no luck just yet.
I’d be curious to find out how to permanently force QuickLook to use a specific generator for a given file type.

I have been doing some debugging. @frankrolf you are right.

The way QuickLook selects a plugin to generate a preview is by matching the LSItemContentTypes properties in the Info.plist of QLStephen with the kMDItemContentType property of a file, which you can obtain by doing mdls -name kMDItemContentType myFile.

For example, if a file has a value of public.data for the kMDItemContentType property, QLStephen will be used to preview it (because public.data is under the LSItemContentTypes property of the Info.plist).

I noticed that yml files have the property kMDItemContentType set to public.yaml, and thus they are not opened with QLStephen. Also, some files have a dynamic value for kMDItemContentType, as you can read here, and they are not opened with QLStephen.

A solution that works for me is to add some extra values to the Info.plist of QLStephen:

<key>LSItemContentTypes</key>
<array>
	<string>public.data</string>
	<string>public.yaml</string>
	<string>com.apple.xcode.strings-text</string>
	<string>dyn.ah62d4rv4ge81e3pxr70hq3pe</string>
</array>

Find the plugin attached here with those changes:
QLStephen.qlgenerator.zip

Remember that every time that a plugin is changed, Finder has to be restarted.

Also, find here a script to read the kMDItemContentType property of multiple files:

for f in *; do
  type=$(mdls -name kMDItemContentType $f)
  echo "$f -> $type"
done

@samcat116

Notarization does not require the $99/yr subscription. Just needs an Developer Apple ID and Xcode .

You are kidding right? You only get a valid developer id, when you pay $99 for the Apple Developer program.

I have a valid developer id and I didn't have to pay the $99.

(just posted my solution in another issue anthonygelibert/QLColorCode#51 (comment))

Removing the quarantine attribute from all files is another solution, to get Quicklook working. No need to change any code.

List attributes
xattr -r ~/Library/QuickLook/QLColorCode.qlgenerator

Delete attribute com.apple.quarantine
xattr -d -r com.apple.quarantine ~/Library/QuickLook/QLColorCode.qlgenerator

(just posted my solution in another issue anthonygelibert/QLColorCode#51 (comment))

Removing the quarantine attribute from all files is another solution, to get Quicklook working. No need to change any code.

List attributes
xattr -r ~/Library/QuickLook/QLColorCode.qlgenerator

Delete attribute com.apple.quarantine
xattr -d -r com.apple.quarantine ~/Library/QuickLook/QLColorCode.qlgenerator

It doesn't work for me. :(

Hi there,

The box "qlstephen cannot be opened because its from an unidentified developer" with button "OPEN ANYWAY" wasn't appearing in my Security and privacy.

I managed to make it work in my machine doing this:

* `brew cask reinstall qlstephen`

* Relaunch Finder

* `sudo spctl --master-disable` # disable gatekeeper

* ensure that it works by doing a quicklook on a random file

* `sudo spctl --master-enable` # plug gatekeeper back

* then opening the "Security and Privacy" did contain the "OPEN ANYWAY" button on the bottom

Cheers,

Similar to this I did the following to get mine to show the elusive button:
brew cask remove qlstephen && brew cask install qlstephen
Open finder so that the cannot be opened because the developer cannot be verified error
Opened up System Preferences > Security and Privacy > General tab
Then there was a button at the bottom right of that box, next to text of the app which was blocked
(qlstephen). Clicked allow and it now works fine.

This issue is affecting many applications (including big ones like Terraform).

simple way to fix this warning is to run xattr -d com.apple.quarantine ~/Library/QuickLook/QLStephen.qlgenerator

Works for me! DOn't forget killall Finder in the end!

simple way to fix this warning is to run xattr -d com.apple.quarantine ~/Library/QuickLook/QLStephen.qlgenerator

Works for me! DOn't forget killall Finder in the end!

I tried and it works on Catalina 10.15.1

not on 10.15.2 :-(

@leirissa
is gatekeeper disabled?
sudo spctl --master-disable
gatekeeper jpg

commented

I installed QLStephen.qlgenerator via brew in 10.15.2
Gatekeeper is disabled
I clicked a README file (public.data) and pressed space
I cannot view the file in QL

What am I doing wrong?

indeed I am stucked as well,,,,e.g bla.conf files are showing the default app icons ( e.g sublime) but no preview...changing to xml and , bang ,,,ok

not on 10.15.2 :-(

@leirissa
I updated macOS to 10.15.2 and it works.
(i downloaded QLStephen.qlgenerator.1.4.4.zip with safari and installed manually.)

commented

I did:
brew cask reinstall qlstephen
and re-launched the Finder. No-go!
spctl --status
assessments disabled

compiled quickview that won't load: https://drive.google.com/open?id=1eo6q4JNmLxl_5EdAj3sRU0jtNzRgNj0U

@ballo sorry I meant the text file without extension. it shows the files without the extension I created myself. maybe there is something different in your file.

for example;
touch testfile
echo "hello world" >> testfile

commented

mdls -name kMDItemContentType README
kMDItemContentType = "public.data"

mdls -name kMDItemContentType testfile
kMDItemContentType = "public.data"

oke, so how to open a file with .conf ( mapped with sublime and only shows the icon)

commented

mdls -name kMDItemContentType blah.conf
kMDItemContentType = "dyn.ah62d4rv4ge80g55sq2"
Screen Shot 2020-01-06 at 11 17 44 AM

qlstephen is for files without extension?

commented

@hazarek Look up "kMDItemContentType"

@hazarek Look up "kMDItemContentType"

so?

commented

It isn't the "extension"

it does not show files with the conf extension because The plugin does not support.
out

commented

Is there a different app that uses quick look plugins which logs their loading, or is it all done by the system and thus a black box

strange, before catalina this works!

commented

I'm regretting Catalina very day. The 32bit absence has killed a lot of functionality like 32bit mplayer (old codecs) and WINE.

Keep it up Apple; Windows is looking better every 'upgrade'

@ballo https://iina.io/.
why do you use old fashioned mplayer.

commented

@hazarek I use it when old win32 codecs are necessary. There's a compatibility layer.

I guess I should say used since Catalina makes it impossible now. I'll have to use Linux in a virtual machine, or figure out a downgrade method (which may be tricky since I never used Mojave)

Solution

Make sure you follow each step correctly. Please don't leave more unnecessary comments so that new users will see this one.

  1. Install the plugin (brew cask install qlstephen)
  2. Select a file without an extension. macOS will show a warning like this one.
    • DO NOT CLICK "Move to Trash"
    • Click "Cancel"
    Cannot be opened because the developer cannot be verified.
  3. Open System Preferences
  4. Visit Security & Privacy
  5. Ensure you're in the General tab. You should see a notice regarding this plugin at the bottom:
    • Click "Allow Anyway"
    qlgenerator was blocked from use because it was not from an identified developer
  6. Select another file without extension OR run:
    qlmanage -p /path/to/file/without/extension
  7. You should see a warning similar to the first one, but with a new button
    • Click "Open" 🎉
    Are you sure you want to open it
  8. Enjoy QuickLooking extension less files on Catalina
    qlgenerator on catalina
commented

'Select a file without an extension. macOS will show a warning like this one.
DO NOT CLICK "Move to Trash"'

nope

commented

Yeah, maybe on your machine but not mine.

I had no issue with @fregante instructions - worked perfectly

xattr -cr ~/Library/QuickLook/QLStephen.qlgenerator
This worked as for all other apps with same issue

commented

@varyform Can you confirm whether or not you saw the "cannot be opened" error and if your solution is for people who have seen the error?

I have yet to see that error.

@ballo I wasn't able to see the error either, but @varyform 's command worked for me.

commented

Doesn't help here.

I also tried moving all contents from ~/Library/QuickLook/ into ~/Library/QuickLook.old/ and reinstalling QLStephen.qlgenerator from brew. It reinstalled but same non-function and non-error.

@fregante Instructions worked for me.