GNOME Bugzilla – Bug 487755
Nautilus being stuck "Loading..." with hidden files
Last modified: 2012-09-16 16:32:49 UTC
Open Nautilus, switch to List View. Open a terminal, same dir. Create a folder for debugging, see that folder appear. $ mkdir debug Expand the debug dir. See an "(Empty)" placeholder as the only child. Collapse the dir again. $ touch debug/file Create a file, expand, see the just created file. This works... $ rm -f debug/file Remove that file. Getting the placeholder back. Collapse again. $ touch debug/file~ Create a hidden backup file as the *only* file in that dir. Expand it another time. This time, Nautilus is stuck at "Loading...", not properly showing the dir does not contains (non-hidden) files. Same with mutiple files, as long as all of them are hidden~ files. Nautilus 2.20.0, eel 2.20.0.
Still occurs in Nautilus 2.24.2. Also applies also to .hidden files, not only hidden~ files.
Confirming with 2.25.92.
Confirming with Nautilus 2.26.2
I also confirm, with Nautilus 2.28.1
*** Bug 631352 has been marked as a duplicate of this bug. ***
*** Bug 643042 has been marked as a duplicate of this bug. ***
Confirming with 2.91.90
Created attachment 182049 [details] [review] preliminary patch The attached patch fixes this issue. The problem is that nautilus_list_model_subdirectory_done_loading changes the "Loading..." dummy entry into "(Empty)" only when the loaded directory is empty, not when it _appears_ empty (i.e., contains only hidden files). However, the patch works by passing some view settings (show_hidden, show_foreign) to the list model, which breaks the view/model separation.
We don't have expanded folders any more in the list view. I can't reproduce this problem with the instructions. I'm going to close this. If it is still an issue please reopen.