Solved. chromium-browser can now open .pdf and .ps files in either acroread, evince or gv. All that was needed was a minor change in the commands to start these programs in etc/mozpluggerrc. (The primary change was to add "needs_xembed" to the macros.)
Near the top of /etc/mozpluggerrc there is a section headed by
###################
### m4 macros ###
###################
Near the end of that section I found definitions for ACROREAD and GV, but both were incorrect, and there was none for Evince. I edited it so now I have the following definitions:
Code:
### Acrobat Reader
define(ACROREAD, [repeat swallow(acroread) fill needs_xembed : acroread -openInNewWindow /a "$fragment" "$file"])
### GV
define(GV_OPTS,[--safer --quiet --antialias -geometry +9000+9000])
define(GV_FLAGS,[repeat swallow(gv) fill needs_xembed])
define(GV,[GV_FLAGS(): gv GV_OPTS() "$file"])
### Evince
define(EVINCE, [repeat swallow(evince) fill needs_xembed: evince "$file"])
Next, further down in the file there are lines containing the following:
application/pdf:pdf:PDF file
application/x-pdf:pdf:PDF file
text/pdf:pdf:PDF file
text/x-pdf:pdf:PDF file
and:
application/x-postscript:ps:PostScript file
application/postscript:ps:PostScript file
Following each line or group of lines, just paste in the macro for the application that you want to use for those filetypes. e.g., to use acroread for .pdf files and evince for .ps files:
Code:
application/pdf:pdf:PDF file
application/x-pdf:pdf:PDF file
text/pdf:pdf:PDF file
text/x-pdf:pdf:PDF file
ACROREAD()
application/x-postscript:ps:PostScript file
application/postscript:ps:PostScript file
EVINCE()
Note: I found the essential clue for this solution in the following bugzilla entry:
https://bugzilla.redhat.com/show_bug.cgi?id=585475
Bookmarks