[qutebrowser] Save PDF file opened with pdfjs
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
> > 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
> No wonder I couldn't find it haha!!
That /var/folders/.../ stuff seems to be the macOS equivalent to what
/tmp is on Linux ;)
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...
Size: 833 bytes
Desc: not available
More information about the qutebrowser