如何在firefox 4中嵌入evince?

Modified on: Sun, 10 Jun 2018 02:41:23 +0800

我根据这篇文章但是当我打开一个.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
作者:Community,Alaukik

最佳答案

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

application/x-postscript: ps: PostScript file
application/postscript: ps: PostScript file

在下一行添加:

repeat noisy swallow(evince) fill: evince "$file"

关闭Firefox,就是这样!

HERE mine:

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)

注意:此插件嵌入了MPlayer Totem OpenOffice ......太


相关问答

添加新评论