Skip to content

Reload command is less thorough than reopening a folder

Let me begin with an example of this issue (through which it has presented itself in my case). If the .hidden file of the current directory changes and the directory is reloaded in Thunar, changes do not come into effect. However, if user changes to a different directory and back to the original one, .hidden file is reread and the directory is reloaded properly.

Steps:

  1. Create or use a sample folder containing a sample file a and a .hidden text file containing sample file's name - a.
  2. Open the folder in Thunar, set it to not show hidden files and verify that the sample file is not shown.
  3. Delete .hidden while the folder is opened in Thunar (it can be done with Thunar itself) or change its contents.
  4. Reload the folder in Thunar (View > Reload). The changes introduced in the .hidden file aren't shown in Thunar in my case.
  5. If you navigate to another place in Thunar and back to the original sample folder, the expected output is shown.

So the main issue here is that reload command works differently than reopening a folder. The reload comand needs to be as thorough as possible, which will consequently solve the example issue (and all potential similar ones). Actually, a major part of the code for opening a folder and reloading it could be shared, if it isn't already.