allusion-app / Allusion

A free and open source desktop application for managing your visual library
GNU General Public License v3.0
662 stars 42 forks source link

fix: Write in place with exiftool #624

Open m0lentum opened 3 months ago

m0lentum commented 3 months ago

Fixes #623

This fixes issues with the way renamed files are detected from inode numbers, which would become desynced whenever exiftool was used. Any files that had their metadata edited would not be correctly detected as moved, and the web clipper would occasionally overwrite existing database entries, mistaking them for moved files.

Note: using inode numbers for detecting renames is still a potential source of errors because any external tool that overwrites files in this way will also similarly desync the database. This just fixes Allusion desyncing the database with its own operations.