![]() |
#1 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Mar 2011
Device: Android
|
Calibre associated with every filetype?!
How is Calibre setting up its file associations on Linux, as I'd really like to undo them all and just associate with .epub and .mobi
At the moment it seems to associate itself with all filetypes - from .txt to .rb and even CHECKSUM files! I've seen a related issue on Gentoo, but this is Fedora and I'm using the binary installer not a package: http://forums.gentoo.org/viewtopic-t...8-start-0.html |
![]() |
![]() |
![]() |
#2 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Mar 2011
Device: Android
|
seems there's a shedload of entries in /usr/local/share/applications/defaults.list and various .desktop files in that directory which are causing the problem.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,207
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre does not associate itself with anything, what it does is tell your OS that it is capable of handling a set of mimetypes, as you will see in the calibre*.desktop files. After that, what application the OS associates with each mimetype is up to it. You need to find out how to edit those associations for the programs/desktop environments you use.
|
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Mar 2011
Device: Android
|
well its pretty much the same thing!
i fixed it by removing all the mimetypes except the mobi/epub ones from the calibre*.desktop files and defaults.list and running update-mime-database i'm still not sure how calibre and ebook-viewer was listed as a mimetype handler for almost every format i tested - probably had text/plain or application/binary in there somewhere.... |
![]() |
![]() |
![]() |
#5 |
Sigil & calibre developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Calibre and the ebook-veiwer support a large number of formats. Plain text is a supported format.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Mar 2011
Device: Android
|
Quote:
i get fed up of editing /usr/share/applications/calibre* (as well as defaults.list and mimeinfo.cache) every time i upgrade calibre. i mean its fair enough to associate with mobi and epub files, but do you really need to become the default handler for msword, html, pdf etc? the clean way to do it would be to allow a user to associate filetypes they want to either via their file manager (in ~/.local/share/applications) or as an option in calibre (thats not enabled by default) not try to overtake 20-odd filetypes for every user on a computer. otherwise could you at least make it so that calibre adds its entries to the end of the mimetypes and not the start, so it doesn't override other handlers that are already setup - for instance taking over from libreoffice as the default msword handler or chrome as the default html handler? |
|
![]() |
![]() |
![]() |
#7 |
Omnivorous
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,283
Karma: 27978909
Join Date: Feb 2008
Location: Rural NW Oregon
Device: Kindle Voyage, Kindle Fire HD, Kindle 3, KPW1
|
I'm curious what distribution you're using. I'm using Ubuntu 10.04 and Calibre definitely does not change the mime types for either msword files, html files or txt files. All are opened in the correct, appropriate applications.
|
![]() |
![]() |
![]() |
#8 | ||||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,890
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Quote:
Quote:
Good Luck in identifying and getting corrected the cause of your system allowing the identifying of mime types to automatically cause an association. |
||||
![]() |
![]() |
![]() |
#9 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,913
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Does not happen on Ubuntu using the Binary install
|
![]() |
![]() |
![]() |
#10 | |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Mar 2011
Device: Android
|
Quote:
seems like ubuntu is the only distro this isn't happening on. Last edited by sej7278; 08-08-2011 at 03:34 AM. |
|
![]() |
![]() |
![]() |
#11 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,207
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Once again: calibre does not set itself as the default handler for any file type, on any operating system. I absolutely detest programs that do that.
On linux calibre uses the freedesktop.org recommend tools, xdg-mime and xdg-desktop-menu to tell your desktop of the mimetypes it is capable of handling. If your desktop environment chooses to then make it the default, over your objections, then your desktop environment's implementation of xdg-mime and xdg-desktop-menu is broken, and you should open a bug report with your distro maintainers. If you don't believe me, feel free to examine the calibre source code, the relevant portion is the function setup_desktop_integration() in src/calibre/linux.py. Last edited by kovidgoyal; 08-08-2011 at 08:25 PM. |
![]() |
![]() |
![]() |
#12 |
Enthusiast
![]() Posts: 30
Karma: 10
Join Date: Mar 2011
Device: Android
|
so do i open bug reports with fedora (13/14/15), debian (6/7) and gentoo, or just gnome (2/3) and kde4?
|
![]() |
![]() |
![]() |
#13 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,207
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This is one of those things that requires co-operation between different projects to work. It's why it is still broken after all this time. If I were you I'd try distro level bug reports first.
|
![]() |
![]() |
![]() |
#14 |
Omnivorous
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,283
Karma: 27978909
Join Date: Feb 2008
Location: Rural NW Oregon
Device: Kindle Voyage, Kindle Fire HD, Kindle 3, KPW1
|
|
![]() |
![]() |
![]() |
#15 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,913
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
Tags |
association, file association, filetype, linux |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Zip Filetype Plugin? | rsingley | Plugins | 7 | 02-11-2011 05:11 PM |
How install Calibre & Calibre Library where I choose? | akmatov | Calibre | 3 | 01-17-2011 08:36 PM |
Kindle and Calibre user with problem importing large library into Calibre | pleabargain | Calibre | 1 | 12-07-2010 10:19 AM |
How to register a filetype? | plisken | iRex | 2 | 09-28-2009 07:16 AM |
calibre command line utilities and calibre defaults | astrodad | Calibre | 2 | 08-07-2008 03:27 PM |