ACPI administration advocacy advocacy advocacy opinion alsa amarok apache apple apt aptitude audio audo authentication automount avi awk bash BIOS boot business cache calendar calibre censorship commandline computerscience console cron cut database date debian degree design desktop development disk dpkg dvd economics education emacs email europe exim faad ffmpeg files firefox firewall flash foss freedom ftp fun fuse git gnumeric grep growisofs grub gtkpod hardware hardware html idiocy images installation ip iphone ipod iptables iso itunes ivman kde kernel keyboard knoppix lame laptop latex linux locale lockin longlines m4a microsoft mimetypes minitab mount mp3 mp4 mplayer multimedia music mysql network nfs nfs4 nmap openbox openoffice opinion opinion partition pdf perl php politics postgresql printing privacy programming rant remote rhythmbox rss rsync rxvt scp script scripting scsi security sed server shell siteadmin sitenews sitesoftware skype skype slackware sound sox spam spreadsheet ssh statistics subversion sudo svk swap t23 t43 terminal text thinkpad thunderbird time timezone ubuntu udev upgrade usb usbmount users uuid versioncontrol vfat video vnc windows wine wordpress wordprocessing X40 xwindows xwindows youtube
Like many people I use calibre as my ebook viewer. Yet, this program is slowly becoming a living nightmare. First is the root exploit. Second is the way that calibre wants to take over every single file. Almost all my files were defaulting to being opened in calibre. Why on Earth would I want an openoffice document opened in calibre? The creators of calibre think I do.
This obviously required fixing.
The file /usr/local/share/applications/defaults.list looks like this:
[Default Applications] application/x-sony-bbeb=calibre-gui.desktop;calibre-lrfviewer.desktop;calibre-ebook-viewer.desktop application/x-ruby=calibre-gui.desktop;calibre-ebook-viewer.desktop text/rtf=calibre-gui.desktop;calibre-ebook-viewer.desktop application/pdf=calibre-gui.desktop;calibre-ebook-viewer.desktop application/x-cbz=calibre-gui.desktop;calibre-ebook-viewer.desktop application/x-mobipocket-ebook=calibre-gui.desktop;calibre-ebook-viewer.desktop application/x-cbr=calibre-gui.desktop;calibre-ebook-viewer.desktop text/fb2+xml=calibre-gui.desktop;calibre-ebook-viewer.desktop application/vnd.oasis.opendocument.text=calibre-gui.desktop;calibre-ebook-viewer.desktop application/epub+zip=calibre-gui.desktop;calibre-ebook-viewer.desktop text/plain=calibre-gui.desktop;calibre-ebook-viewer.desktop text/html=calibre-gui.desktop;calibre-ebook-viewer.desktop application/xhtml+xml=calibre-gui.desktop;calibre-ebook-viewer.desktop application/ereader=calibre-gui.desktop;calibre-ebook-viewer.desktop application/oebps-package+xml=calibre-gui.desktop;calibre-ebook-viewer.desktop
This is a nonsense. It has been setup to open plain text, html and pdfs in calibre. How totally stupid! It needs editing. This is better:
[Default Applications] application/x-sony-bbeb=calibre-gui.desktop;calibre-lrfviewer.desktop;calibre-ebook-viewer.desktop application/x-cbz=calibre-gui.desktop;calibre-ebook-viewer.desktop application/x-mobipocket-ebook=calibre-gui.desktop;calibre-ebook-viewer.desktop application/x-cbr=calibre-gui.desktop;calibre-ebook-viewer.desktop text/fb2+xml=calibre-gui.desktop;calibre-ebook-viewer.desktop application/epub+zip=calibre-gui.desktop;calibre-ebook-viewer.desktop application/ereader=calibre-gui.desktop;calibre-ebook-viewer.desktop application/oebps-package+xml=calibre-gui.desktop;calibre-ebook-viewer.desktop
Then run sudo update-desktop-database. That seems to fix it.
Good fix, thanks for publishing it.
Using the calibre packages provided by your distro rather than installing it from upstream is probably a good idea. The packages for most distros fix the biggest calibre problems, like the two noted here.
"Is Calibre the most annoying program in the word ever?"
s/word/world
You must be like 8 years old.
Posted by Jose Curvo on 2011-12-11 20:25:54.