qlstephen icon indicating copy to clipboard operation
qlstephen copied to clipboard

NO longer working with OS ventura

Open Bradleeey opened this issue 3 years ago • 22 comments

Since the new OS update i cant preview the jsons like i used to.

Bradleeey avatar Nov 03 '22 16:11 Bradleeey

https://github.com/whomwah/qlstephen/issues/23#issuecomment-1322438125

frankrolf avatar Nov 21 '22 17:11 frankrolf

if you have no rosetta installed and you are on a silicon apple machine, you have to rebuild it from source, just clone the git dir, make, make install, just like it shown in the readme.md of the project it will build and install a compatible arm64 version

HofiOne avatar Nov 28 '22 14:11 HofiOne

if you have no rosetta installed and you are on a silicon apple machine, you have to rebuild it from source, just clone the git dir, make, make install, just like it shown in the readme.md of the project it will build and install a compatible arm64 version

I did that and followed the steps with xattr, the two qlmanage commands and restarting finder and it still doesn't work for me

mbenoukaiss avatar Dec 01 '22 19:12 mbenoukaiss

Try to remove the old version first If you used brew

  • brew remove qlstephen (use sudo if you have old style homebrew installation) Double check /Library/QuickLook/ and ~/Library/QuickLook/ folders and remove QLStephen.qlgenerator if there's any

After that try to clean build and install the arm64 version. Running qlmanage -r was enough for me.

It should do the trick.

(please note, I have apple developer ID, so my manually built version is developer signed, that could be a difference, as that way gatekeeper will not block it)

HofiOne avatar Dec 01 '22 21:12 HofiOne

On Intel i5 MacBook Ventura 13.1 (22C65) brew install --cask qlstephen I got the message: ==> Installing Cask qlstephen ==> Moving QuickLook Plugin 'QLStephen.qlgenerator' to '/Users/neil_mb_2022/Library/QuickLook/QLStephen.qlgenerator' 🍺 qlstephen was successfully installed!

Didn't work so I tried

xattr -cr ~/Library/QuickLook/QLStephen.qlgenerator qlmanage -r qlmanage -r cache qlmanage -m and logged out but so far its not working. Can anyone confirm its working on Ventura as of 12/28/2022?

neilyo51 avatar Dec 28 '22 21:12 neilyo51

Can anyone confirm its working on Ventura as of 12/28/2022?

I'm on a MacStudio, using macOS Ventura 13.2 and I got it to work. In the Terminal type

mdls -name kMDItemContentType followed by space and then drag and drop the file you want to preview into the terminal window, press return, now it should say something like kMDItemContentType = "dyn.ah62d4rv4ge8063xt"

Now go to ~/Library/QuickLook/QLStephen.qlgenerator/Contents/ open the Info.plist file and search for the line <string>public.unix-executable</string> (it was line 20 for me) add a new line after that with the content <string>dyn.ah62d4rv4ge8063xt</string> (but use whatever you got from the mdls command above).

Save and close the file, now in Terminal type qlmanage -r now you should be able to preview your file using quicklook.

Metal-Snake avatar Feb 06 '23 19:02 Metal-Snake

Thank you @Diskutant, this worked beautifully. It should be added to the README. (In my case I had, e.g., TextMate and Emacs claiming various extensions, which is good, but prevents them from going to the public.data catch-all.)

arobertn avatar Mar 02 '23 07:03 arobertn

Can anyone confirm its working on Ventura as of 12/28/2022?

I'm on a MacStudio, using macOS Ventura 13.2 and I got it to work. In the Terminal type

mdls -name kMDItemContentType followed by space and then drag and drop the file you want to preview into the terminal window, press return, now it should say something like kMDItemContentType = "dyn.ah62d4rv4ge8063xt"

Now go to ~/Library/QuickLook/QLStephen.qlgenerator/Contents/ open the Info.plist file and search for the line <string>public.unix-executable</string> (it was line 20 for me) add a new line after that with the content <string>dyn.ah62d4rv4ge8063xt</string> (but use whatever you got from the mdls command above).

Save and close the file, now in Terminal type qlmanage -r now you should be able to preview your file using quicklook.

I tried to follow these steps but in the Info.plist there is no <string>public.unix-executable</string> line in my case. I am on a M2 macbook pro with Ventura.

seralouk avatar Mar 13 '23 12:03 seralouk

Then you might have an old version of QLStephen installed. Try to install the latest version.

Metal-Snake avatar Mar 13 '23 12:03 Metal-Snake

Works on MacOS Ventura 13.2.1 as of 15.3.2023.

krasnyt avatar Mar 15 '23 10:03 krasnyt

I solved the issue but all the above I mentioned are valid.

I have downloaded the latest version from here.

I have created a folder QuickLook and placed the file in Library/QuickLook/QLStephen.qlgenerator. Next, I right-click and go to "Show Package Contents" I open the Info.plist file (/QLStephen.qlgenerator/Contents/Info.plist) but there is no <string>public.unix-executable</string> line.

To solve this, I added this line manually and the one after running mdls -name kMDItemContentTyp, and now I have:

<array>
    <string>public.data</string>
    <string>public.content</string>
    <string>public.unix-executable</string>
    <string>public.ndjson</string>

After a qlmanage -r, it now works.

seralouk avatar Mar 15 '23 10:03 seralouk

I have downloaded the latest version from here.

I have created a folder QuickLook and placed the file in Library/QuickLook/QLStephen.qlgenerator. Next, I right-click and go to "Show Package Contents" I open the Info.plist file (/QLStephen.qlgenerator/Contents/Info.plist) but there is no public.unix-executable line.

To solve this, I added this line manually and the one after running mdls -name kMDItemContentTyp, and now I have:

public.data public.content public.unix-executable public.ndjson After a qlmanage -r, it now works.

Thanks for the step-by-step detail which even this old non-coder could follow! With it I was able to get qlStephen running again and even working with GPX files, something I have desired for a long time and never knew how to make it happen. And for the record, I'm a Mac mini with M2 Pro and Ventura 13.2.1.

brudderman avatar Mar 15 '23 22:03 brudderman

@Diskutant Your comment was a great help, thanks! I had the same issue as @seralouk, where the only contents of the <array> preceding line 20 were

<string>public.data</string>
<string>public.content</string>

I added another <string> containing the line I got from running mdls -name kMDItemContentType immediately after those ones above and it worked for me after running qlmanage -r and relaunching Finder.

One additional note for anyone who runs into it: if the OS blocks qlStephen due to the 'unidentified developer' issue, you can grant an exception in System Settings. Immediately after the OS warns you that it has blocked qlStephen from running, navigate to the Privacy & Security section, scroll down to the Security heading and you'll find a note about qlStephen having been blocked next to an 'Open Anyway' button. Click that and the exception will having been granted.

JoshApos avatar Jun 14 '23 18:06 JoshApos

Can anyone confirm its working on Ventura as of 12/28/2022?

I'm on a MacStudio, using macOS Ventura 13.2 and I got it to work. In the Terminal type

mdls -name kMDItemContentType followed by space and then drag and drop the file you want to preview into the terminal window, press return, now it should say something like kMDItemContentType = "dyn.ah62d4rv4ge8063xt"

Now go to ~/Library/QuickLook/QLStephen.qlgenerator/Contents/ open the Info.plist file and search for the line <string>public.unix-executable</string> (it was line 20 for me) add a new line after that with the content <string>dyn.ah62d4rv4ge8063xt</string> (but use whatever you got from the mdls command above).

Save and close the file, now in Terminal type qlmanage -r now you should be able to preview your file using quicklook.

thanks

grock304 avatar Oct 13 '23 05:10 grock304

This project provides the same feature set, and is compatible with latest macOS versions FYI: https://github.com/sbarex/SourceCodeSyntaxHighlight

LouisCAD avatar Dec 14 '23 11:12 LouisCAD

This project provides the same feature set, and is compatible with latest macOS versions FYI: https://github.com/sbarex/SourceCodeSyntaxHighlight

Thanks for your contribution. It doesn't support some files I need (would like) but it's still great. 😁

neilyo51 avatar Dec 14 '23 15:12 neilyo51

I believe it supports adding custom extensions, can you check?

LouisCAD avatar Dec 15 '23 10:12 LouisCAD

I solved the issue but all the above I mentioned are valid.

I have downloaded the latest version from here.

I have created a folder QuickLook and placed the file in Library/QuickLook/QLStephen.qlgenerator. Next, I right-click and go to "Show Package Contents" I open the Info.plist file (/QLStephen.qlgenerator/Contents/Info.plist) but there is no <string>public.unix-executable</string> line.

To solve this, I added this line manually and the one after running mdls -name kMDItemContentTyp, and now I have:

<array>
    <string>public.data</string>
    <string>public.content</string>
    <string>public.unix-executable</string>
    <string>public.ndjson</string>

After a qlmanage -r, it now works.

This basically works for me on Intel Mac with Sonoma 14.4.1. I installed qlstephen via brew, then edited ~/Library/Quicklook/QLStephen.qlgenerator/Contents/Info.plist according to your comment. Thanks a ton!

bohning avatar Apr 26 '24 08:04 bohning

This project provides the same feature set, and is compatible with latest macOS versions FYI: https://github.com/sbarex/SourceCodeSyntaxHighlight

Thank you for this! With QLStephen my Quicklook window was coming up blank in macos 14.6. This program is great and so customizable.

mikedvzo avatar Aug 09 '24 18:08 mikedvzo

Can you @bohning or anyone else confirm this is working for Sonoma 14.6.1 ?

dickgroenenberg avatar Aug 12 '24 08:08 dickgroenenberg