Calibre prioritized for all text files. Unnecessary and annoying

Asked by kaktux on 2020-07-03

Hi there,

everytime i install ubuntu - and some time later add calibre i stumble upon a behaviour of that package/program that makes no sense and is simply annoying.
Calibre is added as default program for almost all text related files. That includes odt files, txt files and most of those created by development environments. This doesnt make sense at all.

I get that maybe - with a big fat maybe - pdf, cbr/cbz may be used by some. It is ok to have epubs and similar associated.
But on which planet does someone want calibre as No1 or probably even any number to open files like an odt with calibre by default if you are a libreoffice etc. user?

I dont know how this is set - but as calibre is the only program that fucks up the order of default file-associations i decided to leave this question here - and ask for a change of that annoying behaviour if it is related to the package.
And changing back by hand whenever you discover another unneeded file association simply is annoying.
If not it would be nice to know what causes this.

regards

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu calibre Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug. Are the steps to reproduce this:

1. Install and upgrade Ubuntu
2. Reboot
3. Install Calibre

Nothing more?

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

Which release of Ubuntu, which version of calibre are you talking of?

What is the output of the commands

uname -a
lsb_release -crid
apt-cache policy calibre
ls -l /usr/share/mime/packages/
grep '.odt' /usr/share/mime/packages/*.xml

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
kaktux (kaktux) said :
#4

i can say this for kubuntu 20.04 and 18.04 for sure. Not certain if this behaviour occured before.
It appeared on these two after installing (i did not upgrade - did a new installation).

uname -a
Linux myname 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

 lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal

 apt-cache policy calibre
calibre:
  Installiert: 4.99.4+dfsg+really4.12.0-1build1
  Installationskandidat: 4.99.4+dfsg+really4.12.0-1build1
  Versionstabelle:
 *** 4.99.4+dfsg+really4.12.0-1build1 500
        500 http://de.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://de.archive.ubuntu.com/ubuntu focal/universe i386 Packages
        100 /var/lib/dpkg/status

ls -l /usr/share/mime/packages/
insgesamt 2876
-rw-r--r-- 1 root root 2278 Feb 27 2019 basket.xml
-rw-r--r-- 1 root root 7518 Mär 31 16:00 bluedevil-mime.xml
-rw-r--r-- 1 root root 1858 Apr 10 20:56 calibre-mimetypes.xml
-rw-r--r-- 1 root root 1499 Mär 20 12:35 docutils.xml
-rw-r--r-- 1 root root 2303788 Mär 24 16:58 freedesktop.org.xml
-rw-r--r-- 1 root root 5732 Mär 11 08:09 gcr-crypto-types.xml
-rw-r--r-- 1 root root 228 Mär 25 13:35 jabref-JabRef-MimeInfo.xml
-rw-r--r-- 1 root root 218591 Mär 7 10:38 kde5.xml
-rw-r--r-- 1 root root 258 Jun 13 19:36 keeweb.xml
-rw-r--r-- 1 root root 1872 Mär 1 10:37 kerfuffle.xml
-rw-r--r-- 1 root root 18361 Mär 3 20:33 kf5_network.xml
-rw-r--r-- 1 root root 5592 Mär 1 10:45 kpatience.xml
-rw-r--r-- 1 root root 335212 Mai 14 14:10 libreoffice.xml
-rw-r--r-- 1 root root 463 Apr 8 15:56 remmina-mime.xml
-rw-r--r-- 1 root root 2144 Jun 4 18:29 virtualbox.xml
-rw-r--r-- 1 root root 2248 Mär 1 10:40 x-k3b.xml

grep '.odt' /usr/share/mime/packages/*.xml
/usr/share/mime/packages/freedesktop.org.xml: <comment xml:lang="pl">Lista odtwarzania XSPF</comment>
/usr/share/mime/packages/freedesktop.org.xml: <comment xml:lang="pl">Lista odtwarzania iRiver</comment>
/usr/share/mime/packages/freedesktop.org.xml: <comment xml:lang="pl">Lista odtwarzania WPL</comment>
/usr/share/mime/packages/freedesktop.org.xml: <glob pattern="*.odt"/>
/usr/share/mime/packages/freedesktop.org.xml: <glob pattern="*.fodt"/>
/usr/share/mime/packages/freedesktop.org.xml: <comment xml:lang="sl">Datoteka razpredelnice odtisa CD cue</comment>
/usr/share/mime/packages/freedesktop.org.xml: <comment xml:lang="sl">Surovi odtis diska</comment>
/usr/share/mime/packages/freedesktop.org.xml: <comment xml:lang="sl">Surovi odtis diska (stisnjeno z XZ)</comment>
/usr/share/mime/packages/freedesktop.org.xml: <comment xml:lang="sl">surovi CD odtis</comment>
/usr/share/mime/packages/freedesktop.org.xml: <comment xml:lang="pl">Lista odtwarzania QuickTime</comment>
/usr/share/mime/packages/freedesktop.org.xml: <comment xml:lang="pl">Lista odtwarzania MRML</comment>
/usr/share/mime/packages/freedesktop.org.xml: <comment xml:lang="pl">Lista odtwarzania strumieniowego na żywo HTTP</comment>
/usr/share/mime/packages/freedesktop.org.xml: <comment xml:lang="pl">Lista odtwarzania Microsoft ASX</comment>
/usr/share/mime/packages/freedesktop.org.xml: <comment xml:lang="pl">Lista odtwarzania RealMedia</comment>
/usr/share/mime/packages/freedesktop.org.xml: <comment xml:lang="pl">Lista odtwarzania MP3 ShoutCast</comment>
/usr/share/mime/packages/freedesktop.org.xml: <comment xml:lang="pl">Skrót listy odtwarzania Google Video</comment>
/usr/share/mime/packages/freedesktop.org.xml: <comment xml:lang="pl">Przenośny odtwarzacz dźwięku</comment>
/usr/share/mime/packages/libreoffice.xml: <glob pattern="*.odt"/>
/usr/share/mime/packages/libreoffice.xml: <glob pattern="*.fodt"/>

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

On my system odt file are opening in Openoffice, text files are opening in gedit, and only files like epub are opening in calibre.
Calibre is shown as a program that is able to open odt and txt files, but it is not set as default.

What output do you receive for the commands

mimeopen -a -d -D whatever.odt

at the question
use application #
type the number that is shown in front of "LibreOffice Writer"

Revision history for this message
kaktux (kaktux) said :
#6

well - of course libreoffice in front there NOW - because i already had to change that (using kde settings for file associations) - and put libreoffice back to the top of the choices/default.
it currently gives me the options to choose from:
        1) LibreOffice Writer (libreoffice-writer)
        2) E-book Viewer (calibre-ebook-viewer)
        3) calibre (calibre-gui)
        4) Okular (okularApplication_ooo)
        5) Ark (org.kde.ark)

But still - why is calibre even in there.. - the installation puts it into the list to choose from somehow.

Let me give you another (of dozens) of examples:
- For x-python (.py)
- for x.lua (.lua)
- for font (.otf)

calibre is marked as program to choose for opening.

Which makes zero sense at all - and is the reason i opened this discussion.

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

What's wrong with having calibre in the list additionally, as long as it is not set to default?

Revision history for this message
kaktux (kaktux) said :
#8

Everything is wrong with that.
Would you be fine with every other programm to behave like that?
Even it is in no way related to opening the file format (see my font or python example up top - i am pretty sure the same goes for odt - next to 0 people will use calibre for odts).

And also: it IS set to default for odt and others - I wrote in my entry post that i have to change it back manually each time i installed it.

Let me ask you back -
What reason ist there to add calibre into the list for opening any other files then epub/mobi/pdf ?
What reason is there to add calibre into the list for opening odt/py/otf?
What reason is there to set calibre as default for most - including pdf/odt/py/otf - and many, many more?

I cant see any usercase that needs this - and that is why the title i choosed "Unnecessary and annoying" is true.

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

It is NOT set to default on my system.

Revision history for this message
kaktux (kaktux) said :
#10

so you are confirming it is set. k.

As i myself can confirm the described behaviour for three different installations - time to open a bug.

thx.

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

You are welcome to create a bug report.

I just want to emphasize - I cannot confirm that calibre is set as default app to open text files or odt files etc.
On my system this is not the case and has never been.

Can you help with this problem?

Provide an answer of your own, or ask kaktux for more information if necessary.

To post a message you must log in.