Mozplugger notes

Mozplugger allows you to open attachments like PDFs from within Firefox. It does this by using the applications you’d normally use to read the files, such as Zathura for PDFs, but embedded inside a container that’s opened in the browser.


The default configuration file can be found in /etc/mozpluggerrc. You can override this configuration with a file in your home directory at ~/.mozilla/mozpluggerrc.

For example, I’ve got the following line in my ~/.mozilla/mozpluggerrc file, to handle PDFs using Zathura as first preference, followed by a number of other programs to use if the preceeding programs aren’t available:

application/pdf:pdf:PDF file
application/x-pdf:pdf:PDF file
text/pdf:pdf:PDF file
text/x-pdf:pdf:PDF file
  repeat noisy swallow(zathura) fill: zathura "$file"
  repeat noisy swallow(kpdf) fill: kpdf "$file"
  repeat noisy swallow(Xpdf) fill: xpdf -g +9000+9000 "$file"
  repeat noisy swallow(okular) fill: okular "$file"
  repeat noisy swallow(epdfview) fill: epdfview "$file"
  repeat noisy fill exits: evince "$file"

Documentation can be found via man mozplugger when you’ve got it installed. There’s also some minimal documentation at mozplugger: documentation, though it points you to the man page for the necessary detail.

Last modified: 23/06/2012 Tags: ,

This website is a personal resource. Nothing here is guaranteed correct or complete, so use at your own risk and try not to delete the Internet. -Stephan

Site Info

Privacy policy

Go to top