如何在firefox 4中嵌入evince?

Lin*_*ity 9 firefox pdf evince

我安装了 mozplugger 并根据这篇文章创建了包含以下内容的文件 mozpluggerrc ,但是当我打开 .pdf 时,它会在单独的 evince 窗口中打开。

有没有办法像 Chrome pdf 阅读器一样真正将它嵌入到 Firefox 中?

application/pdf: pdf: PDF file
application/x-pdf: pdf: PDF file
text/pdf: pdf: PDF file
text/x-pdf: pdf: PDF file
application/x-postscript: ps: PostScript file
application/postscript: ps: PostScript file
application/x-dvi: dvi: DVI file
    : evince $file
Run Code Online (Sandbox Code Playgroud)

hhl*_*hlp 13

Evince 是一个 GTK+ PDF 和 PS 查看器,用于替换 gpdf/xpdf/acroread 和 ggv,并且它是开源的。使用 mozplugger,您可以将各种内容嵌入 Mozilla 和/或 Firefox,例如媒体播放器和 openoffice。

首先确保你已经安装了 Evince 和 mozplugger。

现在~/.mozilla/mozpluggerrc在您最喜欢的文本编辑器中打开。以下是如何使用 gedit 按Alt+ Ctrl+T并粘贴

gedit ~/.mozilla/mozpluggerrc

无论你在哪里看到这个:

application/pdf: pdf: PDF file
application/x-pdf: pdf: PDF file
text/pdf: pdf: PDF file
text/x-pdf: pdf: PDF file
Run Code Online (Sandbox Code Playgroud)

application/x-postscript: ps: PostScript file
application/postscript: ps: PostScript file
Run Code Online (Sandbox Code Playgroud)

在下一行添加:

repeat noisy swallow(evince) fill: evince "$file"
Run Code Online (Sandbox Code Playgroud)

关闭 Firefox,就是这样!

这里我的:

application/pdf: pdf: PDF file
application/x-pdf: pdf: PDF file
text/pdf: pdf: PDF file
text/x-pdf: pdf: PDF file
application/x-postscript: ps: PostScript file
application/postscript: ps: PostScript file
    repeat noisy swallow(evince) fill: evince "$file"

# Also load the default configuration
sinclude(/etc/mozpluggerrc)
Run Code Online (Sandbox Code Playgroud)

注意:这个插件嵌入了 MPlayer Totem OpenOffice ...