Created attachment 6602 inkonsistency between view and status bar Working with Inkscape, I often export an image, which is saved as xy.svg as xy.png to the same directory. Viewing it in Thunar, the thumbnail preview (didn't test for other views) shows the files in some order (by age, descending) and I mark the first one, which is displayed as xy.svg. However the status bar shows xy.png. Opening the details box, it is xy.png too. Doing something with the file, i.e. opening it with inkscape, which handles both formats opens the .png-file. Hitting the 'refresh' icon doesn't change the view, but leaving the directory and entering it again solves the problem. I marked this as a major issue, since you can delete serious amounts of work by accident that way. I add two screenshots as attachments, if that works. :) Ah, I see, only one attachment possible.
Created attachment 6603 Inconsistency thumbnail view and details box
I can confirm this strange behaviour of Thunar during last several months. However, I would like to add my small observation. On my system Thunar does not confuse the files with similar name only -- it confuses arbitrary files with each other. It happens every time when a file is added to the folder or rewritten by some application.
*** Bug 13440 has been marked as a duplicate of this bug. ***
The bug is reported at launchpad/ubuntu too: https://bugs.launchpad.net/ubuntu/+source/thunar/+bug/1300398/comments/13 - I don't know if this is interesting to someone.
Possibly same bug is described in Bug 14288 and Bug 14173
Created attachment 7648 patch fixing the problem On the first glance it looks like the order was just wrong ( first trigger redraw on view and after that tell the new order to the view ) As well strange that redraw was triggered for all files, not only for files which changed. I need to do some more investigation before applying this patch to prevent possible side-effects.
*** Bug 14173 has been marked as a duplicate of this bug. ***
*** Bug 14288 has been marked as a duplicate of this bug. ***
For the record: The duplicates Bug 14173 and Bug 14288 both provide nice testcases to reproduce the bug
Another possible duplicate: Bug 13786
*** Bug 13627 has been marked as a duplicate of this bug. ***
*** Bug 13399 has been marked as a duplicate of this bug. ***
Looks like bug was introduced by this optimization: https://git.xfce.org/xfce/thunar/commit/?id=4569ffdb7e8bb441c9485db58aece581444487be ... did some test with the patch. So far it seems to work fine.
Alexander Schwinn referenced this bugreport in commit 7e4f4a0c0be5ac0c503ca4aedf8aee8676006177 Thunar confuses files (bug #12435) https://git.xfce.org/xfce/thunar/commit?id=7e4f4a0c0be5ac0c503ca4aedf8aee8676006177
Alexander Schwinn referenced this bugreport in commit d86b704fec69b79aebf6521f4591aea6b8c6d9f3 Thunar confuses files (bug #12435) https://git.xfce.org/xfce/thunar/commit?id=d86b704fec69b79aebf6521f4591aea6b8c6d9f3
Fixed with slight modification to prevent another glitch (thanks Andreldm !) Will be released in the next days within thunar 1.6.15 and within thunar 1.7.2 (dev release, rc for 1.8.0)
Great to hear! Thanks, guys!
Awesome, thanks so much! This has been confusing me for some time! I just built the master and tried it out -- works great now! I did have a question about the test files in bug#14288 though. The files included symbolic links. When you change a source file that has a symlink pointing to it, the preview and sort order of the changed source file updates. But the preview and sort order of the symlink does not. A reload fixes this, but shouldn't the symlink update also? When you right click to rename or go to delete a file based on the icon preview it could become a bit confusing since the preview in the "rename" dialogue is still the old preview. Still nowhere near as dangerous as the previous behavior though. But the preview is wrong, and the sort order is then not true Sort by Modify Date until you reload. Also to note, when I open a symlink and change the file, the source file preview is updated and sorted, but the symlink I clicked on appears unchanged in both preview and sort order. Anyway, just curious about the way symlinks update. This is a great fix. Thanks again so much!
You are welcome ! I agree that it would be nice to update the sort order and the thumbnails for symlinks ... though I think it would require quite some work. Could you please open a new bug for it ?
*** Bug 13786 has been marked as a duplicate of this bug. ***