folder thumbnailer does not remove cached thumbnail when file deleted
I'm currently running the git version of tumbler (up to date) on Arch Linux.
Reproducer:
- Create a Test directory in $HOME
- Copy in a folder.png file
- Start thunar and notice that the Test directory has the correct folder icon
- Delete the Test/folder.png file and refresh thunar
- The folder thumbnail remains even though the file not longer exists (this survives a thunar refresh, tumbler restart and system restart).
Interesting to note is that a non-standard cache filename is created:
total 19672
-rw------- 1 toz toz 26656 Oct 27 07:10 e2728c090b97c1ea20a34db50680569c.png
-rw------- 1 toz toz 26651 Oct 27 07:09 9d3e001efadb50db18f3fa953a107c1e-1698404974.png
-rw------- 1 toz toz 26651 Oct 27 07:09 9d3e001efadb50db18f3fa953a107c1e.png
-rw------- 1 toz toz 3769 Oct 27 07:09 d918046659c16fb0a071f2370939877f.png
-rw------- 1 toz toz 4683 Oct 27 06:25 4de2dd3fcb86714421181068a6bd5c5f.png
-rw------- 1 toz toz 5788 Oct 27 06:17 aa494232d6ca7127ad037a989caf136a.png
-rw------- 1 toz toz 7517 Oct 26 20:47 d888539abccced9ffe4bff287e61a25b.png
-rw------- 1 toz toz 1337 Oct 26 06:04 60cb9a4cf591102b52789814b330eaa9.png
-rw------- 1 toz toz 1190 Oct 26 06:04 17be2a21718d39493b186cdf961c5834.png
Attached is the tumblerd debug log generated from "G_MESSAGES_PREFIXED= G_MESSAGES_DEBUG=all $(pkg-config --variable=libdir tumbler-1)/tumbler-1/tumblerd". Of interest is that when thunar is refreshed, the "Test" directory isn't even being processed.
Note: I'm using the code as listed on the wiki page (https://docs.xfce.org/xfce/tumbler/available_plugins#customized_thumbnailer_for_folders) with the exception of the Exec line which I think contains an error. I'm using:
Exec=sh -c '~/bin/folder-thumbnailer %s %i %o %u'