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.

Trying new software: gmb

Can't locate Gtk2.pm in @INC (you may need to install the Gtk2 module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./gmusicbrowser.pl line 23.
BEGIN failed--compilation aborted at ./gmusicbrowser.pl line 23.

… typical.
after some research I installed libgtk2-perl and got:

esis:~/APP$ ./gmusicbrowser-1.1.15/gmusicbrowser.pl
Can't redeclare "my" in "my" at /home/ix/APP/gmusicbrowser-1.1.15/gmusicbrowser_list.pm line 8001, near ",my"
Compilation failed in require at ./gmusicbrowser-1.1.15/gmusicbrowser.pl line 440.
BEGIN failed--compilation aborted at ./gmusicbrowser-1.1.15/gmusicbrowser.pl line 473.

This is not good! Well there seems to be quite recently updated version at their git. Downloaded that and it started!

Now we’re in business, let’s see if it does the few things I need: save certain data to tags %RATING% and %PLAY_COUNTER%.
Rating is saved as %FMPS_RATING% and %FMPS_RATING_USER%, Stars 1-5 are translated as 0.200000, 0.400000, 0.600000, 0.800000, 1.000000. That resolution is certainly interesting! On the GUI side, you get 10 values for the rating (half-stars), Not a fan of that. Perhaps it can be disabled or hacked away somehow.
The main problem is that gmb doesn’t save %PLAY_COUNTER% to the tag in any form! This is not good. It is visible on the GUI so you can see it, but as it is my files have this tag and I intend to keep updating those tags as long as I live. It seems that some one else wishes this feature too, but the issue is from 2018. damnit.

In conclusion, foobar2000 from 2007 is still the best audio-player on linux, but just barely.

Updated My Journal (2020W37)

Not much progress, I didn’t get the rest of the ordered hardware, I did some planning though. I passed a test I was reading for and my other educational endeavors are progressing, but those are out of my hand for now. But what do I do at the bus now?

Progressed some on GT5 grind (A-Spec 26; B-Spec 38). I also got few 無双OROCHI Z -trophies. Survival on that one scares me, I’d need to defeat 50 opponents without losing once! My record so far is 15.