09-13-2010, 03:01 PM | #1 |
Junior Member
Posts: 3
Karma: 50
Join Date: Sep 2010
Device: Irex
|
[Linux] File Associations, again
Hi,
Can someone tell me what Calibre has done to the default file associations in a Gnome universe under Linux? It is very impractical for me to have all my pdf's imported into Calibre (many are fleeting files, which need to exist only briefly, particularly for temporary communications with colleagues) when I double click on them. I've changed the association in Nautilus, and I've changed Firefox so that it merely downloads and saves pdfs, but if I click on the file in the "Downloads" window, I still get Calibre importing, and it isn't obvious to me how to stop this. Since some aspect of the Calibre installation did this, I assume someone knows what exactly was done, and how it can be undone. In general, I find this behavior unpleasantly aggressive (I like to approve system-wide modifications, if a program wants to invoke them, rather than having them done without any input from me). I'll have to get rid of Calibre and manage my readers by hand if it's going to do this everytime I upgrade, as much as it eases the occasional need to convert. I realize there may be users who are happy to have all of this done for them behind the scenes. I'm not complaining about the software, which has been generously provided by its author. I just want to turn this particular "capability" off. Thanks, Mark |
09-13-2010, 03:15 PM | #2 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Actually the calibre installer doesn't setup any file associations. All it does is install a desktop file. That desktop file tells the system that calibe is capable of opening the various ebook formats that it supports. WHat your system chooses to set as the default for any given format is up to it.
|
Advert | |
|
09-13-2010, 05:07 PM | #3 |
Junior Member
Posts: 3
Karma: 50
Join Date: Sep 2010
Device: Irex
|
File Associations, my bad
Must be the package maintainer for ArchLinux. I'll
stop using the package and install directly from your site. I apologize for implying that this move resided with Calibre itself. Thanks for an excellent tool. Mark |
09-13-2010, 05:11 PM | #4 |
creator of calibre
Posts: 43,776
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Not a problem. File associations on linux are a mess. There are three hundred different ways of specifying them, all of which keep changing. It's a real mare's nest. calibre's installer relies on xdg-utils (a set of supposedly desktop neutral tools) to do the right thing with mimetypes, whether it works for you or not is going to depend on how well xdg-utils is setup by your distro.
|
09-13-2010, 05:35 PM | #5 |
Junior Member
Posts: 3
Karma: 50
Join Date: Sep 2010
Device: Irex
|
P.S.
The magic de-association command, on many modern Gnome
desktops, is apparently xdg-mime default evince.desktop application/pdf (for pdfs, for example, assuming you want evince to open them like it did before). Parallel commands word for other file types. Mark |
Advert | |
|
12-29-2010, 11:58 AM | #6 |
Junior Member
Posts: 1
Karma: 10
Join Date: Dec 2010
Device: kindle
|
Apologies for necroposting, however as this is the first hit in google for this specific issue, I thought I'd throw in my two pence.
As was pointed out above, the installer adds three .desktop files: Code:
/usr/share/applications/calibre-gui.desktop /usr/share/applications/calibre-ebook-viewer.desktop /usr/share/applications/calibre-lrfviewer.desktop |
03-17-2011, 12:16 PM | #7 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jan 2011
Device: ezreader
|
Thank you, thank you, thank you. The problem is there is a mime.types file included in the source that has all of Kovid's mime types plus the calibre specific ones. I have been searching for a fix for this for ages.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Opus Updating EPUB file won't change publisher data on file listing | spaze | Bookeen | 1 | 03-08-2011 01:34 AM |
I'm in the market: lightweight, multiple file formats, Linux host support | KenJackson | Which one should I buy? | 11 | 10-25-2010 11:23 PM |
Hacks Original screensaver files in Linux file system ? | meem | Amazon Kindle | 4 | 08-13-2010 07:23 AM |
Secure .PDB file to file Kindle will read! Help! | mbtravis63 | Kindle Formats | 2 | 01-17-2010 04:20 AM |
File management: how to copy file from USB stick? | Lec0mte | iRex | 5 | 05-04-2009 07:19 AM |