Calibre 5 Released!

I’ve been using calibre for years as my library manager. Back in the days when I used windows, I used Comic Rack, but that is windows only and I had to change that to something better and calibre was the choise I made. Version 5 was released quite recently and I got that for my new rig. However as always there are some problems.

Problem

Underneath it uses xdg-open to open file. Therefore, people like me who are using programs from different desktops, will have bad time as calibre opens them with a ‘wrong’ program.

Apparently the author dislikes this approach:

I gave up on xdg-open a long time ago. Now in all my system, I just replace it with my own 100 line implementation. I suggest you do the same. Trying to get xdg-open to work with anything other than the major desktop environments is an exercise in needless frustration.

kovidgoyal, creator of calibre

The problem still remains. I’m using enlightenment as my WM and okular for reading books, but xdg-open opens Evince!

Solution

After some reaearch, I was left confused. I’m sure there is a better way, like a console command, but what I did was:

  1. Open nautilus.
  2. Find filetype that calibre opens with wrong program.
  3. Right-click and change the default.
  4. Close nautilus.

I also have trouble getting the dark-mode on, but suppose it’s because of gnome or something. meh.