← Back to team overview

qpdfview team mailing list archive

Re: [Question #242810]: Suggestion; pdf saved in Downloads folder

 

Question #242810 on qpdfview changed:
https://answers.launchpad.net/qpdfview/+question/242810

    Status: Open => Answered

Adam Reichold proposed the following answer:
Hello Imad,

thank you for your suggestion, however I am not comfortable with hard-
coding such work-flow-specific behaviour into qpdfview as an application
itself. However, I also do have to suggestions how to achieve such
behaviour using more lightweight measures:

* Instead of qpdfview, select a shell script as the PDF file handler in
Firefox that copies files from /tmp to the destination of your of choice
before passing them on to qpdfivew. Of course, this will save all
documents that you opened directly in qpdfview, not just the ones you
leave open when closing it.

* So a more aggressive approach would be to use the first script to copy
files to e.g. "~/Download/tmp/" and wrap qpdfview into a second script
that scans its database for open tabs after closing the application and
removes all files from said folder that were not open in qpdfview at the
time of closing it. (The database is usually localted at
"~/.local/share/data/qpdfview/qpdfview/database" and is a simple SQLite
database that can be queried via a variety of command-line tools. Look
for table "tabs_v2" column "filePath".)

Best regards, Adam.

-- 
You received this question notification because you are a member of
qpdfview, which is an answer contact for qpdfview.