Como faço para o Chromium mostrar PDFs usando o Evince?

5

Existe alguma maneira de obter o Chromium para usar uma combinação de mozpluggerrc / evince para mostrar PDFs incorporados em sua própria janela? Neste momento, o Chromium está apenas baixando PDFs. Eu posso abri-los em uma janela externa evince clicando no arquivo baixado.

Estou usando o Chrome 18.0.1025.168 no Ubuntu 12.04 (amd64). Aqui está a seção pdf do meu /etc/mozpluggerrc.d/62-documents.conf:

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(evince) fill needs_xembed: evince "$file"

O mozpluggerrc aparece em aproximadamente: plugins.

BTW, isso funciona muito bem no Firefox.

Observação: não estou procurando dicas sobre como usar o plug-in PDF do Google Chrome no Chromium.

    
por potofcoffee 13.07.2012 / 15:55

1 resposta

7

Em /etc/mozpluggerrc.d edite o 40-global_defs.conf e adicione

### Evince
define(EVINCE, [repeat swallow(evince) fill needs_xembed: evince "$file"])

Agora, em /etc/mozpluggerrc.d/62-documents.conf , o GV () & amp; ACROREAD () (não é necessário) precisa ser substituído por EVINCE () como

application/pdf:pdf:PDF file
application/x-pdf:pdf:PDF file
text/pdf:pdf:PDF file
text/x-pdf:pdf:PDF file
  

EVINCE () & lt; & lt; anteriormente ACROREAD ()

    repeat noisy swallow(Xpdf) fill needs_xembed: xpdf -g +9000+9000 "$file"
    repeat noisy swallow(okular) fill needs_xembed: okular "$file"
        repeat noisy swallow(epdfview) fill needs_xembed: epdfview "$file"
  

EVINCE () & lt; & lt; anteriormente GV ()

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

Salve e tente abrir arquivos PDF no Chromium, ele será aberto com o evince.

Graças a esta fonte original

    
por atenz 13.07.2012 / 17:01