I’m using Zotero to organise my bibliography. Not only do I store citation information, but I also love the possibility to let it organise the corresponding PDF files. That way I have full-text search and a superb tagging facility for almost everything I read and might need to use and cite later. As a Fedora user, I didn’t have Firefox configured to embed all kind of media into the browser by default. In general I perceive this as an advantage, but in my use-case I have Firefox with Zotero running in full-screen on a separate workspace and want it to manage the screen entirely. And since Evince is the default PDF viewer on Gnome at the moment, I would like it to be embedded into Firefox tabs as I open PDFs from Zotero.
As quick search for the topic brought me to an article in the Ubuntu Forums which solved 90% of the problem. Installing Mozplugger
yum install mozplugger
and raising the priority of Evince as its PDF handler made most of the PDFs open embedded just as intended. However, Zotero seems to assign an unusual MIME type for the PDFs it stores that is „application/octetstream“. Thus to fit my needs, I added that type to the Mozplugger PDF handler
sudo vim /etc/mozpluggerrc
which now reads as
application/pdf:pdf:PDF file application/x-pdf:pdf:PDF file text/pdf:pdf:PDF file text/x-pdf:pdf:PDF file application/octetstream:pdf:PDF file repeat noisy swallow(evince) fill: evince "$file" # ACROREAD() # repeat noisy swallow(kpdf) fill: kpdf "$file" # repeat noisy swallow(Xpdf) fill: xpdf -g +9000+9000 "$file" # repeat noisy swallow(okular) fill: okular "$file" # GV() # repeat noisy fill exits: evince "$file"