Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 09-13-2010, 03:01 PM   #1
markhale
Junior Member
markhale is on a distinguished road
 
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
markhale is offline   Reply With Quote
Old 09-13-2010, 03:15 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-13-2010, 05:07 PM   #3
markhale
Junior Member
markhale is on a distinguished road
 
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
markhale is offline   Reply With Quote
Old 09-13-2010, 05:11 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 09-13-2010, 05:35 PM   #5
markhale
Junior Member
markhale is on a distinguished road
 
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
markhale is offline   Reply With Quote
Advert
Old 12-29-2010, 11:58 AM   #6
justpassing
Junior Member
justpassing began at the beginning.
 
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
To remove this ridiculous behaviour in one move rather than working through every mimetype (including audio/video files??!!) by hand with xdg-mime (or whatever you choose), simply remove the MimeType=blah;blah;blah entries from these files. This will dis-associate the calibre components from everything. You can then re-associate any single file types yourself if you so please.
justpassing is offline   Reply With Quote
Old 03-17-2011, 12:16 PM   #7
oldpond
Junior Member
oldpond began at the beginning.
 
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.
oldpond is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 03:00 PM.


MobileRead.com is a privately owned, operated and funded community.