dannyedel / dspdfviewer

Dual-Screen PDF Viewer for latex-beamer
http://dspdfviewer.danny-edel.de
GNU General Public License v2.0
219 stars 29 forks source link

inotify support #12

Closed mmonaco closed 10 years ago

mmonaco commented 10 years ago

I thought of another one =)

It would be nice if everything is re-rendered when the underlying PDF changes. I use this with evince a lot so I can leave the PDF open and just run make to update it.

This of course could be optional, either on or off by default.

dannyedel commented 10 years ago

This seems like a great idea, provided you have enough screens to edit the PDF aswell as view it : ) But with the -u0 (maybe with -f) combination it should play nicely with a standard (La)TeX editor+make system on the primary screen. However, I first need to program a re-render function, that requires some thinking on its own before going auto-reload. I'll program that in its own ticket and then get back to this one.

dannyedel commented 10 years ago

inotify (using QFileSystemWatcher) has been implemented in c3dafc3. It should be smart enough to not use an obviously broken file (created while pdflatex is writing its output), but instead wait until Poppler can open the file. If possible please re-test.

dannyedel commented 10 years ago

In my personal testing, inotify works fine now.

If this is buggy at all, please re-open, but for now I consider it fixed.