* Thomas Werzmirzowsky <werzi2...@gmx.de> [01-08-17 16:24]: > Hello everybody, > > first of all I'd like to thank you for your great work on darktable. I > really like using it :-) > > Some time ago I noticed a behaviour according to the "delete" > functionality which I'd consider a bug and wanted to inform you about that. > > In the case that the deleted image is a "original" image the source file > including the xmp file is deleted as expected. But if I delete a duplicate > nothing gets deleted from the disk (I'd expect the xmp file to be > deleted). This causes the duplicate image to reappear if I should ever > reimport > the directory. That's not critical but quite annoying. > > I did some debugging in the source code of 2.2.1 and got that far: > - dt_control_delete_images_job_run in control_jobs.c gets called correctly > - the else-block with the comment "// don't remove the actual source > data if there are further duplicates using it;" is entered correctly > - delete_file_from_disk is called with the correct path (filename of > duplicate xmp file) > - within delete_file_from_disk send_to_trash is false > - created gfile instance points to the right file (duplicate xmp file) > - g_file_delete returns true although the file doesn't really get > deleted from the disk > > Would be great if anybody could have a further look at that and if my > debugging was helpful :-)
I see the same, when original is deleted, the original photo and xmp files are deleted, but when deleting a duplicate, the duplicated image is removed but the duplicated image's xmp file remains on disk / is not deleted. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 Photos: http://wahoo.no-ip.org/piwigo @ http://linuxcounter.net ___________________________________________________________________________ darktable developer mailing list to unsubscribe send a mail to darktable-dev+unsubscr...@lists.darktable.org