Skip to content

Relative symlink thumbnails don't update when moved if new target has the same name as old target

If you create a relative symlink and a thumbnail is generated for that symlink, when you move that symlink to a new folder where it points to a different target file whose name is the same as the old target file, the relative symlink thumbnail will not update to reflect the new target file it points to.

I've noticed this when working on icon themes.

Here is are few files for testing: rel-example.tar.gz.

The file structure is:

rel-example/
 └───16/
      └─── ebook.png
      └─── ebook-svg.svg
 └───128/
      └─── ebook.png
      └─── ebook-svg.svg

To Reproduce:

  1. Open Thunar
  2. Go to rel-example/128
  3. Open terminal in that dir and type ln -sr ebook.png ebook-symlink.png
  4. Back to Thunar
  5. Copy or Cut ebook-symlink.png
  6. Go to rel-example/16
  7. Paste

Now ebook-symlink.png will be pointing to the 16px file, but the symlink thumbnail preview will represent the 128px file. The symlink seems to represent the new 16px size for just a second, but then switches back to its previous 128px size.

This stays the same even after restarting Thunar. If you edit the file it is pointing to, it will refresh the symlink thumbnail. I also find that if you rename the symlink, the thumbnail will momentarily represent the new file, but then switch back to the previous thumbnail.

I'm using Thunar 4.16.8 and Tumbler 4.16.0. Edit: Updated, same result with Thunar 4.16.10. If there's anything more I can add or try let me know. Thanks!

Edited by newhoa