https://bugs.kde.org/show_bug.cgi?id=508902
Bug ID: 508902
Summary: Tellico does not clean up unused images written to
disk
Classification: Applications
Product: tellico
Version First 4.1.3
Reported In:
Platform: Flatpak
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
In several scenarios, Tellico writes images to disk but does not delete them
when they are no longer needed.
The directory containing the images grows over time, containing several unused
images.
STEPS TO REPRODUCE
1. Create a new book collection
2. Save the collection. For example, to the location "~/tellico/books.tc"
3. Settings => Configure Tellico...:
Reopen file at startup: enable
Image Storage Options: Store images in directory relative to data file
4. Save settings. Close and reopen tellico.
5. Add a book with a cover:
Add entry from "Internet Search..."
Search "2-84565-200-3"
Search type: ISBN
Search source: Open Library
6. Click on the entry without adding it to the collection.
First problem: the cover is written to the location "~/tellico/books_files/"
even though the book has not been added to the collection.
If you close the window without adding the book, the file is not deleted.
7. Add the entry to the collection, then remove it from the collection.
Second problem: when you delete an entry, the associated cover is not
deleted from the location "~/tellico/books_files/".
8. Save the book collection, then create a new collection without saving it to
disk: File => New Collection => New Music Collection
9. Add an album with a cover:
Add entry from "Internet Search..."
Search "078636633619"
Search type: UPC/EAN
Search source: MusicBrainz
10. Click on the entry without adding it to the collection.
Third problem: The cover is written in the location of the previous
collection: "~/tellico/books_files/"
SOFTWARE/OS VERSIONS
OS: Linux Mint 22.1 (Xia) - Cinnamon
Tellico: 4.1.3
KDE Frameworks: 6.13.0
Qt: Using 6.9.0 and built against 6.9.0
KDE Flatpak runtime (Xcb)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.14.0-28-generic
ADDITIONAL INFORMATION
The problem also occurs with the "Store images in common application directory"
setting.
It is possible to delete unused images by following these steps:
1. Switch to the "Store images in data file" setting
2. Save settings. Save the collection. Close and reopen the collection.
4. Delete the directory "~/tellico/books_files/"
5. Set the parameter "Store images in a directory relative to the data file."
--
You are receiving this mail because:
You are watching all bug changes.