linuxmint / xviewer

A generic Image viewer
GNU General Public License v2.0
75 stars 37 forks source link

Xviewer does not update displayed image after file changes. #151

Closed brunobcfum closed 2 years ago

brunobcfum commented 3 years ago
 * Xviewer version 3.0.2
 * Distribution - Mint 20.2

Issue Xviewer does not update displayed image after file changes.

Steps to reproduce

Expected behaviour Image shown in Xviewer is updated with the content of the updated file

Other information It worked like that in Mint 20.1 with version 2.8.3. I downgraded xviewer in Mint 20.2 to version 2.8.3 but it still does not work. Could it be related to something else on Mint 20.2? It work as expected with Eye of Gnome for example.

programmer-ceds commented 3 years ago

Pix behaves as you want as well. It looks as though xviewer is intending to work the same way..

Update 12.10.2021 Most times I can't reproduce this using V3.0.2 with GIMP overwriting or exporting to update the file that xviewer has open - the change is reflected in the xviewer image. Then occasionally a change is not reflected in what xviewer is displaying until I select "View/Reload".

A 'guaranteed' way of reproducing the problem would be useful.

12.10.2021 (later) It seems that if I open an image file in xviewer by double clicking on it in nemo then it does not reflect externally made changes. If I open the file by opening a terminal window and typing xviewer followed by the file name then the changes do appear without having to press 'R' or move to another image and back again. This makes life awkward since running in a terminal window allows printf statements to help debug the problem - in particular I had added code to print a message each time a file changed event was received (these did appear to be received correctly - at least whilst running in terminal mode)

programmer-ceds commented 2 years ago

This issue can now be closed.

brunobcfum commented 2 years ago

Thank you!