Change default PDF application under ubuntu 8.10/Firefox 3.0
Hi,
Zotero does always use evince when I double click on a pdf to open it. I changed the default action for pdfs to xournal and set "do not ask again" but evince is called anyway.
Any idea where zotero stores the default application for opening a pdf?
Thanks,
Michael
Zotero does always use evince when I double click on a pdf to open it. I changed the default action for pdfs to xournal and set "do not ask again" but evince is called anyway.
Any idea where zotero stores the default application for opening a pdf?
Thanks,
Michael
(For files not handled natively by Firefox or by a plugin, Zotero generally just launches the file via the OS. Some OSes don't support this kind of launching, however, in which case Zotero just loads the file via Firefox's external helper app window, which you can configure in the Firefox prefs. At one point Firefox on Linux didn't support launch() and used the helper app window—I'm not sure if this is still the case.)
thanks for your fast answer. The strange thing is that I set both to use xournal, but Zatero is still using evince (the former default viewer).
I forgot to mention that I use the 64Bit version of ubuntu.
Here is the log while I tried to open a pdf (and it opened with evince):
zotero(5): SELECT linkMode, path FROM itemAttachments WHERE itemID=4070
LoadPlugin: failed to initialize shared library /home/mlesniak/.mozilla/plugins/nppdf.so [/home/mlesniak/.mozilla/plugins/nppdf.so: wrong ELF class: ELFCLASS32]
LoadPlugin: failed to initialize shared library /home/mlesniak/opt/helix/mozilla/nphelix.so [/home/mlesniak/opt/helix/mozilla/nphelix.so: wrong ELF class: ELFCLASS32]
zotero(3): MIME type application/pdf cannot be handled natively
Regards,
Michael
[Edit: Updated obsolete link]
thanks for this helpful information :)
Have a nice weekend,
Michael
I was trying to get Zotero to open pdf's using Foxit.
In the end I had to change the command of Document Viewer in
/usr/share/applications
to FoxitReader %F
as well as changing
/etc/gnome/defaults.list:application/pdf
to FoxitReader.desktop
oh and Dan's link is wrong:
http://ubuntuforums.org/showthread.php?t=837034
does work
First, make sure PDFXchange is your default pdf viewing software. This works in mint 11 by just right clicking 'open as... other' on a pdf and keeping the 'remember this selection for files of this type'.
The problem is that zotero standalone won't notice that, it keeps using the default from your gnome.list. So...
1. Clone a desktop entry for pdfxchange at /usr/share/applications/pdfxchange.desktop
Mine looks like this (without the dashes):
---
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=PDFXchange
Type=Application
GenericName=PDFXchange
Comment=Read and Annotate PDF Document
Exec=xdg-open %F
StartupNotify=true
Icon=/usr/share/pixmaps/fx-icon.png
Terminal=false
Categories=GNOME;GTK;Application;Office;Viewer;
MimeType=application/pdf;application/x-bzpdf;application/x-gzpdf;
Comment[zh_CN]=Read PDF Document
GenericName[zh_CN]=PDFXchange PDF Reader
---
save that file, then modify /etc/gnome/defaults.list:application/pdf to pdfxchange.desktop
What you're describing is exactly what I'm trying to achieve also. I've got PDFXchange installed and set up as the system default (open as . . . . other). I'm also okay with editing defaults.list, but still being rather new to Linux (Ubuntu Natty), I'm a bit lost on "1. Clone a desktop entry for pdfxchange at /usr/share/applications/pdfxchange.desktop . . ."
Might you be able to spell out this part of the process just a bit further?
Thanks so much.
sudo gedit /usr/share/applications/pdfxchange.desktop
(obviously replace gedit with vi, vim, emacs or whatever you like to use)
copy the content between the --- above, save and done.
Comment[zh_CN]=Read PDF Document
GenericName[zh_CN]=PDFXchange PDF Reader
are unnecessary and won't do anything unless you're on a Chines version of Ubuntu ;-) - they localize the text displayed