This is an old revision of the document!


File Handling Issues

Unexpected behavior (wrong action, gibberish ("%PDF..."), etc.) when opening files from Zotero

Deleting mimeTypes.rdf from your profile directory and restarting Firefox or Zotero Standalone is generally what's needed to fix file handling issues. mimeTypes.rdf stores file handling associations and will be recreated automatically the next time you restart Firefox or Zotero Standalone.

Profile directory location for Zotero for Firefox

Follow these instructions to locate your profile directory.

Zotero itself doesn't tell Firefox how to handle a file—it simply checks if a file can be handled within Firefox (natively or via a plugin) and then either sends it to Firefox if so or otherwise launches it via the OS. Problems in mimeTypes.rdf can prevent this from working properly, however.

Profile directory location for Zotero Standalone

You can find your Zotero Standalone profile directory in the following location:

OS X
/Users/<username>/Library/Application Support/Zotero/Profiles/<randomstring>
Windows 7/Vista
C:\Users\<User Name>\AppData\Roaming\Zotero\Profiles\<randomstring>
Windows XP/2000
C:\Documents and Settings\<username>\Application Data\Zotero\Profiles\<randomstring>
Linux
~/.zotero/Profiles/<randomstring>

PDFs opening in wrong application on GNU/Linux systems

If you find that PDFs open in, e.g., Gimp even though you've set the file handler to be Okular in Dolphin/Nautilus/Firefox/what-have-you, this tip might help:

Open the file

~/.local/share/applications/defaults.list

in your favorite plain-text editor and look for the line “application/pdf=…”. Change it to

application/pdf=kde4-okularApplication_pdf.desktop

If the file does not exist, create it and enter the following content:

[Default Applications]
application/pdf=kde4-okularApplication_pdf.desktop

Note: On some systems, you might need to use

application/pdf=kde-okularApplication_pdf.desktop

instead.

If you want Evince or Adobe Acrobat instead of Okular, use

application/pdf=evince.desktop

or

application/pdf=acroread.desktop