"Walter Dnes" <[email protected]> writes: > On Sun, Jan 11, 2015 at 01:21:19PM +0100, lee wrote >> "Walter Dnes" <[email protected]> writes: >> >> > Assuming you've already got "Content Type" "PDF file" in the list, >> > click on the icon beside "emacsclient" in the "Action" column. This >> > opens a dropdown menu. Click on "Use other..." and navigate to >> > /usr/bin/mupdf in the file menu. >> >> That's what I thought and tried. I don't want to use it as default >> action, though, because I sometimes save PDFs. > > Two options... > > 1) In the "Action" column you can select "Always ask", and it'll always > ask what you want to do. I find that to be a pain.
What I want is to have llpp as the default program to show PDFs and be asked what I want to do, i. e. either shave or display it with the default program. Currently, I'm being asked what I want to do, and if I don't want to save the PDF but display it, I have to pick the program with which to display it. > 2) mupdf does not render straight from memory. First it saves the pdf > file to /tmp/ and renders it from there. I believe the linux default is > to always clean up /tmp/ at every reboot (but not during restore from > hibernation). While mupdf doesn't have a "Save as" option, you can > copy/move the file from /tmp/ manually, giving you the same effect as a > "Save as". Yes, I noticed that llpp (or mupdf) is buggy in that it doesn't clean up after itself. That's enough reason for me to want something better. It's really bad behaviour to leave temporary files around and can even be a privacy issue. It's a hazard for the whole system because the /tmp partition might fill up, and when it's not a separate partition, the system may go down because the disk is full, or you'll see other issues because the /tmp partition is full. Having to try to figure out which file name might have been used to be able to switch to the shell to copy that file to where I want it would be a pita. -- Again we must be afraid of speaking of daemons for fear that daemons might swallow us. Finally, this fear has become reasonable.

