Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Automatically reload an image when its file was changed #278

Closed
wants to merge 2 commits into from

Conversation

sdx23
Copy link
Contributor

@sdx23 sdx23 commented May 14, 2017

This behaviour is common in many other applications e.g. pdf viewers but also in other image viewers. It can be useful when modifying or generating images by a script (for example working with gnuplot).

The setup is such that different backends for notification about file changes are supported and can be selected at compile time. A dummy backend and a backend using inotify are included.

Automatic reload can be disabled by a command line option.

xyb3rt added a commit that referenced this pull request May 17, 2017
Pull request #278.

Fixes issue #29 and issue #199.
@xyb3rt
Copy link
Owner

xyb3rt commented May 17, 2017

Thank you very much for your contribution. It is very welcome as it fixes a pretty old issue, for that I only had a very cumbersome workaround.

I decided against picking the second commit. I do not think that an option to disable autoreloading is that useful.

Please do not take it personally that I changed so many things. I've tried to split the changes in as many commits as possible, so that you can understand the motivation behind every change.

@xyb3rt xyb3rt closed this May 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants