[qutebrowser] Save PDF file opened with pdfjs

Florian Bruhin me at the-compiler.org
Fri Nov 9 11:11:08 CET 2018


On Fri, Nov 09, 2018 at 10:57:04AM +0100, Valentin Iovene wrote:
> Hey, thanks for you quick reply.
> 
> On 09.11.2018 10:42, Florian Bruhin wrote:
> > You can instead disable content.pdfjs and hit Ctrl-P
> > (:prompt-open-download --pdfjs) in the download prompt.
> 
> Is there a way I can make a keyboard shortcut that
>   1. disables pdfjs
>   2. download the file in ~/Downloads without asking
>   3. re-enables pdfjs?

Don't think so, as you can't get the original URL easily when PDF.js is
already open.

> > In a qutebrowser-download-... directory in your OS' temporary
> > directory.  Don't remember where that was on macOS, but you can do
> > :debug-console and this:
> > 
> >   from qutebrowser.browser import downloads
> >   downloads.temp_download_manager.get_tmpdir().name
> 
> This gave me
> 
>   /var/folders/d9/c026wqfd69d4v4__gg3dfn0h0000gq/T/qutebrowser-downloads-0q1p1npg
> 
> No wonder I couldn't find it haha!!

That /var/folders/.../ stuff seems to be the macOS equivalent to what
/tmp is on Linux ;)

Florian

-- 
https://www.qutebrowser.org | me at the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
         I love long mails! | https://email.is-not-s.ms/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://listi.jpberlin.de/pipermail/qutebrowser/attachments/20181109/d7f28cdc/attachment.asc>


More information about the qutebrowser mailing list