Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
kb:file_handling_issues [2010/10/08 13:14] dstillmankb:file_handling_issues [2022/12/19 21:20] (current) – [PDFs opening in wrong application on Linux systems] dstillman
Line 1: Line 1:
-==== File Handling Issues ====+====== File Handling Issues ======
  
-=== Unexpected behavior (wrong action, gibberish ("%PDF..."), etc.) when opening files from Zotero ===+==== Unexpected behavior (wrong action, gibberish ("%PDF..."), etc.) when opening files from Zotero ===
  
-Deleting mimeTypes.rdf from the [[http://support.mozilla.com/kb/Profiles|Firefox profile directory]] 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.+Deleting mimeTypes.rdf from your [[profile directory]] and restarting Zotero 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 Zotero.
  
-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.+==== PDFs opening in wrong application on Linux systems ====
  
 +While Zotero be configured to use the system-default PDF reader, file handling on Linux can be affected by many settings. If you find that PDFs open in, say, Gimp even though you've set the file handler to be Okular in Dolphin/Nautilus/etc., the easiest solution is to choose a specific PDF reader from the General pane of the Zotero preferences.
  
-=== PDFs opening in wrong application on GNU/Linux systems === +If you'd like to keep the setting as "System Default"you can try the following: 
-If you find that PDFs open in eg. Gimp even though you've set the file handler to be Okular in Dolphin/Nautilus/Firefox/what-have-youthis tip might helpopen the file+ 
 +Open the file
 <code> <code>
 ~/.local/share/applications/defaults.list ~/.local/share/applications/defaults.list
 </code> </code>
-in your favorite plain text editor and look for the line "application/pdf=...", change it to +in text editor and look for the line "application/pdf=...". Change it to 
  
 <code> <code>
-application/pdf=kde-okularApplication_pdf.desktop+application/pdf=kde4-okularApplication_pdf.desktop
 </code> </code>
  
-If the file does not exist, just create it and enter the following content:+If the file does not exist, create it and enter the following content:
  
 <code> <code>
 [Default Applications] [Default Applications]
 +application/pdf=kde4-okularApplication_pdf.desktop
 +</code>
 +
 +Note: On some systems, you might need to use 
 +<code>
 application/pdf=kde-okularApplication_pdf.desktop application/pdf=kde-okularApplication_pdf.desktop
 </code> </code>
 +instead.
 +
 +
 +For other PDF readers you might use one of the following:
  
-If you want Evince or Adobe Acrobat instead of Okular, use  
 <code> <code>
 application/pdf=evince.desktop application/pdf=evince.desktop
 </code> </code>
-or  
 <code> <code>
 application/pdf=acroread.desktop application/pdf=acroread.desktop
 +</code>
 +<code>
 +application/pdf=Foxit-Reader.desktop
 </code> </code>
  
-{{tag>kb}} +{{tag>kb basics}}
kb/file_handling_issues.1286558052.txt.gz · Last modified: 2010/10/08 13:14 by dstillman