Try this experiment: With "thunar --daemon" running, insert and remove a usb stick repeatly (waiting between events for thunar to catch up) until the insert operation doesn't cause a new window to pop up. This usually takes me 2 or 3 attempts. Then double click on the name of mountpoint in the listview of one of the open windows. For me, this runs nautlius to view the folder!! The problem is that the file->info becomes NULL at some point when the name doesn't exist, and this gets cached and not refreshed. I fixed it with the following patch. You can also find it at https://github.com/neilbrown/thunar.git in the 'folder-destroy' branch. There are a few other patches in there that I would like to recommend to you. I can open new bugzilla entries for them it you like. Thanks. My Patch: diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c index 9509600..ad7915b 100644 --- a/thunar/thunar-file.c +++ b/thunar/thunar-file.c @@ -621,6 +621,8 @@ thunar_file_get (GFile *gfile, { /* take a reference for the caller */ g_object_ref (file); + if (file->info == NULL) + thunar_file_load (file, NULL, NULL); } else {
This should be fixed now ThunarFiles are destroyed when not "visible", other references only keep the GFile.
Closing fixed.