bfabiszewski / QLMobi

Quick Look plugin for Kindle ebook formats
130 stars 7 forks source link

Doesn't work on Sonoma 14.2.1 #9

Closed steveparry1 closed 1 month ago

steveparry1 commented 9 months ago

Using a MBPro M1 running Sonoma 14.2.1 _ ran the terminal command you suggested and I got this:

Last login: Fri Feb 2 20:33:18 on console steveparry@Julay1 ~ % qlmanage -d 4 -p -o /tmp /path/to/your/test.mobi qlmanage: illegal option -- Usage: qlmanage [OPTIONS] path... -h Display this help -r Force reloading Generators list -r cache Reset thumbnail disk cache -m [name ...] Display statistics about quicklookd. Stats names:

steveparry@Julay1 ~ %

bfabiszewski commented 9 months ago

It seems they dropped -d option in newer qlmanage versions. Just remove -d 4 from the command.

steveparry1 commented 9 months ago

Now I get this:

Last login: Fri Feb 2 21:00:24 on ttys000 steveparry@Julay1 ~ % qlmanage -p -o /tmp /path/to/your/test.mobi Testing Quick Look preview with files: /path/to/your/test.mobi

bfabiszewski commented 9 months ago

Do you realize you have to change /path/to/your/test.mobi to a real path to the file you want to test?

steveparry1 commented 9 months ago

No - I am a complete beginner in using the Terminal or Console. I don't know how I should paste the appropriate text in. I'd be grateful if you could explain how to copy the path to my file in to the text.

bfabiszewski commented 9 months ago

Write qlmanage -p -o /tmp and then paste any mobi file into the console. It will be converted to its path. Or even better drag the file into console.

steveparry1 commented 9 months ago

Thanks. Now I get: Last login: Fri Feb 2 21:05:29 on ttys000 steveparry@Julay1 ~ % qlmanage -p -o /tmp /Users/steveparry/Downloads/Mark\ Cousins\,\ Kevin\ Macdonald\ -\ Imagining\ Reality\ The\ Faber\ Book\ of\ Documentary\ (2011).mobi Testing Quick Look preview with files: /Users/steveparry/Downloads/Mark Cousins, Kevin Macdonald - Imagining Reality The Faber Book of Documentary (2011).mobi

bfabiszewski commented 9 months ago

Difficult to say anything from this output. Especially that they removed -d option which gave more debugging info. May be some problem related to M1. I don't have access to M1 Mac to test. But it also can be something else. Maybe the plugin is not installed correctly or does not have proper permissions granted. It is tricky to set it up as it is not bundled with any official App Store application.

steveparry1 commented 9 months ago

Thank you for trying.

bfabiszewski commented 9 months ago

Would be helpful to hear from other M1 users who tried or managed to use this plugin. Technically it should work as I compiled it also for this CPU.

aik099 commented 9 months ago

@bfabiszewski,

Initially, I've got this warning with no way to proceed any further:

2024-02-06_16-18-24

After running qlmanage -p -o /tmp <path_to_my_mobi_file> command I got a confirmation dialog (I never saw it again and I forgot to screen capture it), that asked if I was certain, that I wanted to run QlMobi QuickLook generator. Once I've confirmed, then it generated a preview and regular quicklook attempts (when you press a space on a mobi file) also started to work.

@steveparry1 , please:

  1. provide a link for downloading a mobi file in question
  2. does the issue happen on every mobi file you've tried or just a particular one?
bfabiszewski commented 9 months ago

@aik099 Thanks for the info!

Newer macos versions are more problematic towards unofficial apps (not signed). Quicklook plugins are also now meant to be distributed with applications, not standalone. This creates problems that may be hard to debug. You probably need to do what I mention in README: xattr -d -r com.apple.quarantine ~/Library/QuickLook/QLMobi.qlgenerator This will strip quarantine attribute from the plugin. It may also be necessary to add gatekeeper exception: sudo spctl --add ~/Library/QuickLook/QLMobi.qlgenerator

I can confirm the plugin works on Sonoma, but I did not check on Apple Silicon cpus.

steveparry1 commented 9 months ago

Here is a link to a .mobi file: https://www.dropbox.com/scl/fi/8tb03erso8lbqep3vhc8i/Alice-in-Wonderland.mobi?rlkey=fvd9gnyuevdbwm1409vd09k9k&dl=0 The issue occurs on every .mobi file I try to preview.

aik099 commented 9 months ago

Here is a link to a .mobi file: https://www.dropbox.com/scl/fi/8tb03erso8lbqep3vhc8i/Alice-in-Wonderland.mobi?rlkey=fvd9gnyuevdbwm1409vd09k9k&dl=0 The issue occurs on every .mobi file I try to preview.

It worked for me. Big grey rectangle instead of the book's front cover, but if you scroll down it looks perfect: 2024-02-09_14-06-40

aidan-gibson commented 1 month ago

Worked seamlessly for me on 14.6.1 using brew. This issue should be closed.

steveparry1 commented 1 month ago

I just upgraded to Sequoia and still no luck previewing .mobi files. Worse than that I now find none of my epub files preview other than showing the cover! I've given up on mobi. But how do I get my epubs to preview like they did previously? Thanks.

bfabiszewski commented 1 month ago

Sequoia changelog says:

Support for deprecated Quick Look Generator plugins is being removed. To provide previews and thumbnails for your custom file types, migrate to Quick Look Preview Extension and Thumbnail Extension API. (116791365)

I will have to investigate if it is still possible to make standalone Quicklook plugins.