View Single Post
Old 02-14-2019, 05:18 AM   #1
schmittlauch
Junior Member
schmittlauch began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2019
Device: PocketBook TouchHD 2
default viewer program: calibre doesn't adhere to xdg-mime settings

Hi,

I have the following issue: When double-clicking on a file (this case: PDF), Calibre doesn't respect the desktop-wide "open with" filetype associations:

PDF files are supposed to be opened with "okular" on my system, but are instead opened with "calibre" again which then tries to re-import them.
The "View specific format (Alt+V)" dialogue is also only partially functional:
While "View -> View specific format -> Open PDF with -> Okular" opens the correct program Okular, even a "View -> View specific format" and the double-clicking on the big PDF symbol again triggers the wrong program, in this case calibre.

Can someone point me to the relevant parts of Calibre's code responsible for opening a book after a double-click and the logic behind selecting which program to use for that? I then can try to debug this myself.

I already started with a fresh ~/.config/calibre/, that didn't help either.

I'm running Calibre on Linux, precisely on NixOS. NixOS can be a bit quirky sometimes, so I'm willing to debug this myself if someone can give me a starting point in the code.

Thanks
schmittlauch is offline   Reply With Quote