GNOME Bugzilla – Bug 625566
Delete xmp sidecar when deleting Photo completely
Last modified: 2018-07-01 09:04:11 UTC
The xmp sidecar files are not removed when a photo is deleted completely.
Created attachment 166766 [details] [review] Delete xmp if original version is deleted from drive
Review of attachment 166766 [details] [review]: The crappy formatting is because the original file had tabs instead of spaces. Sorry.
Review of attachment 166766 [details] [review]: ::: src/Core/Photo.cs @@ +293,3 @@ + } + + if(remove_original && version_id == OriginalVersionId) { Missing a space here between the if and the bracket. Why only delete when deleting the original version?
Because it shouldn't be removed deleting only one version, while others of this photo are kept. This will be the next step, when we have unique xmp files.for each file, not for each basename.
Created attachment 167011 [details] [review] Delete xmp if original version (last remaining version) is deleted from drive https://bugzilla.gnome.org/show_bug.cgi?id=625336
Fixed the formatting. Normally the original version can not be deleted as version. It can only be deleted deleting the entire Photo.
Created attachment 190970 [details] Deletes "useless" xmp-sidecar-files Hi, For anyone stuck with a lot of "useless" xmp-files: I attached a little bash-script to this bug-report, that will delete all the xmp-files which don't have a corresponding .NEF, .jpg, .JPG or .jpeg file in specified folder(s). It worked for me, but USE IT AT YOUR OWN RISK!! Cheers, Don
PS: the script works for Nikon-Cameras (files with the following naming pattern DSC_1234.JPG / DSC_1234.NEF ). Modify the script for other file-name-patterns.
Created attachment 226152 [details] [review] [PATCH] Delete xmp sidecar when deleting Photo completely -- updated to latest git updated for git commit 5b6706b5446be47ba91e289fc32ec3e41b1cdb89 on master
f-spot is not under active development anymore, has not seen code changes for five years, and saw its last tarball release in the year 2010. Its codebase has been archived: https://gitlab.gnome.org/Archive/f-spot/commits/master Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the responsibility for active development again.