In my case touch -m *
and touch *
only re-generate all but still not re-generate for the problematic images. md5sum
of that images also not found in ~/.cache/
.
Then I do experiment by copy all "ok" images to other directory to backup, leaving only 3 problematic images in that folder, and use strace
to debug what path it open, does it open ~/.cache/thumbnails
as other answer mentioned? (The log below is my second attempt with 1 problematic image):
xb@dnxb:~/.cache/thumbnails/normal$ strace -f -e open,openat nautilus '<My Directory>' |& grep -ni thumbnail
...
1428:[pid 30799] openat(AT_FDCWD, "/home/xiaobai/.cache/thumbnails/fail/gnome-thumbnail-factory/d3b419c7166b51189307c0c0c9e1e559.png", O_RDONLY) = 36
^C
I observed that 3 images inside ~/.cache/thumbnails/fail/
which has different md5sum, no wonder md5sum trick is not working.
Then I try eog <original image path>
("Eye of GNOME" program) to think and surprising me, thumbnails get re-generate in nautilus when try strace
second time with this log:
xb@dnxb:~/.cache/thumbnails/normal$ strace -f -e open,openat nautilus '<My Directory>' |& gi thumbnail
...
1422:[pid 30904] openat(AT_FDCWD, "/home/xiaobai/.cache/thumbnails/normal/d3b419c7166b51189307c0c0c9e1e559.png", O_RDONLY) = 36
...
1428:[pid 30909] openat(AT_FDCWD, "/home/xiaobai/.cache/thumbnails/normal/d3b419c7166b51189307c0c0c9e1e559.png", O_RDONLY) = 35
...
^C
xb@dnxb:~/.cache/thumbnails/normal$
The thumbnails with the same md5 filename moved into ~/.cache/thumbnails/normal/
from ~/.cache/thumbnails/fail/
So run eog *
command from terminal can fix this too (Note: I did touch -m *
and touch *
before, and strace nautilus
to view the image outcome). And for OP
question, can use eog <image path>
.
mv file newfile
, wait a bit, andmv newfile file
. Used to work.