Crash when deleting parent directory and sub directory is open in another thunar window
There is only one situation that Thunar crashes for me. It is regular enough that I have decided to outline how it can be replicated. Maybe someone else can confirm it.
Thunar 1.8.14 on Xubuntu 20.04
Situation: I have a directory open in a window in Thunar. Inside it is a bunch of video files and a subdirectory containing subtitles for the videos. I open the subdirectory with a middle click on the mouse so I have both the parent and subdirectory open side by side in two separate thunar windows.
To replicate the crash I go up one level above the parent directory and then right click and move to trash.
One of two things happens.
- Either ALL thunar instances instantly crash OR
- The thunar instance where the parent directory was deleted from successfully removes the directory BUT the other thunar instance still shows the contents of the subfolder.
It doesn't happen all the time but it happens several times a week because that is how I like to use thunar. If I just make up my own parent and subdirectories it doesn't seem to replicate the crash (but the subdirectory remains open even after the parent has been trashed). Most often it happens with directories containing many files.
I suspect some code needs to be tweaked to "clean up" better.