View Single Post
Old 01-13-2025, 09:23 AM   #1
oddhack
Junior Member
oddhack began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2025
Device: none
How does calibre determine viewer to invoke on Debian?

When I asked calibre running on Debian 12 to view a book in PDF form, it launches ebook-viewer instead of the PDF viewer configured in mime.types / mailcap. I am guessing this is because it's doing something involving XDG, since

xdg-mime query default application/pdf

returns

calibre-ebook-viewer.desktop

(and ebook-viewer is definitely not a PDF viewer). It is not clear to me where it's getting this association from, as I'm not even running an XDG-compliant WM (WindowMaker) and don't have any of the XDG environment variables set.

I'm drowning in XDG documentation at the moment trying to figure out what's going on, and it would be easier if someone in the forums happens to know what calibre is actually doing to determine this association (and even easier if there's some way to override the behavior globally in calibre, instead of right-clicking on the PDF and selecting a different application every time).

Failing that all I can think of is using xdg-settings to alter this, then look at the filesystem to see what files got updated as a result of doing that.
oddhack is offline   Reply With Quote