After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 99439 - items count is misleading for inaccessible directories
items count is misleading for inaccessible directories
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Views: All
3.15.x
Other All
: Low minor
: future
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-11-24 18:38 UTC by Simon Howard
Modified: 2017-08-17 13:59 UTC
See Also:
GNOME target: ---
GNOME version: 3.15/3.16


Attachments
file: Change string of unreadable directory item count (1.84 KB, patch)
2017-08-12 21:06 UTC, António Fernandes
none Details | Review
file: Change string of unreadable directory item count (1.20 KB, patch)
2017-08-12 22:14 UTC, António Fernandes
committed Details | Review
file: Use Unicode ellipsis and em dash for default attribute strings (2.17 KB, patch)
2017-08-14 11:09 UTC, António Fernandes
committed Details | Review

Description Simon Howard 2002-11-24 18:38:07 UTC
When "show number of items in folders" is turned on, but the directory is
not readable, "? items" is displayed. This is ugly. Better would be to
simply display no text in this case, or "number of items unknown" if
totally neccesary.
Comment 1 Aschwin van der Woude 2002-11-28 19:56:36 UTC
This is still true for 2.1.2.
Comment 2 Christian Rose 2003-07-08 21:27:23 UTC
Is this still relevant?
Comment 3 Dennis Smit 2004-01-28 18:05:36 UTC
With CVS head, this is not relevant anymore and the bug could be
closed.
Comment 4 Simon Howard 2004-08-05 11:17:51 UTC
Er no, this is still here in Nautilus 2.6.3.  Just find a directory on your
filesystem which you dont have permission to read, "? items" is still displayed.
Comment 5 Christian Neumair 2005-09-14 22:09:57 UTC
Yup, this is still an issue for Nautilus 2.12. I think "? items" was chosen
because it is extremely terse. "number of items unknown" seems to be a bit too
long. We should really choose a better label, which still fits into one line.
Any suggestions?

Milestoning to future, since it breaks string freeze.
Comment 6 Simon Howard 2005-09-14 22:48:57 UTC
Why not simply show nothing?  If there's nothing to say, don't say it.
Comment 7 Christian Neumair 2005-10-03 12:27:34 UTC
Mass changing Nautilus version for bugs that have GNOME 2.13 version info.
Comment 8 Emmanuel Fleury 2008-11-18 21:12:48 UTC
What's up with this issue ? The SVN HEAD still display "? items". What behavior has been decided for this ?
Comment 9 Muhammet Kara 2015-03-01 19:19:54 UTC
It still exists as of GNOME nautilus 3.15.90.
Comment 10 António Fernandes 2017-08-12 20:35:10 UTC
Still valid.

Currently (Nautilus 3.5.90), nautilus displays:
(1)- an ellipsis (...) while reading the number of items
(2)- two dashes (--) if folder item count is disabled (by default for remote locations)
(3)- and "? items" for folders I have no permission to read (/root for instance)

However, without this knowledge, the meaning expressed by "--" and "? items" is the same: the number of items not shown. While there is a different underlying cause (disabled vs. unreadable), is there any reason to use two different strings that don't convey these causes?

"? items" could be replaced by "unkown" but while that's a short word, it can be long in other locales ("desconhecido" in Portuguese, for instance).
Comment 11 António Fernandes 2017-08-12 21:06:53 UTC
Created attachment 357492 [details] [review]
file: Change string of unreadable directory item count

For the reasons stated in the previous comment, I propose to replacing "? items" with "--".

If the user wants more details, those are already available in the Properties dialog, which will either calculate the icon count (for remote folders) or state that contents are unreadable.
Comment 12 António Fernandes 2017-08-12 22:14:23 UTC
Created attachment 357494 [details] [review]
file: Change string of unreadable directory item count

Previous patch was messy, sorry.
Comment 13 Carlos Soriano 2017-08-13 20:28:38 UTC
Review of attachment 357494 [details] [review]:

Thanks for the patch! Some changes:

::: src/nautilus-file.c
@@ +7542,3 @@
             nautilus_file_get_directory_item_count (file, &item_count, &count_unreadable);
         }
+        return g_strdup (count_unreadable ? "--" : "...");

Change it for their utf counterparts, both the three dots and the dash.
Comment 14 António Fernandes 2017-08-14 08:13:04 UTC
Great idea! We probably should do it for the other occurrences of "..." in the surrounding code. May be worth a separate patch?

There are also 2 strings nearby "? bytes" and "? items", but I have no idea where in the UI they are shown.
Comment 15 António Fernandes 2017-08-14 11:09:02 UTC
Created attachment 357545 [details] [review]
file: Use Unicode ellipsis and em dash for default attribute strings

This is supposed to apply on top of the previous patch. It converts more instances of "..." than the one from the previous patch.

Carlos, should I merge the two patches or is it better to keep the changes separated like this?
Comment 16 Carlos Soriano 2017-08-14 11:21:57 UTC
Review of attachment 357545 [details] [review]:

LGTM!
Comment 17 Carlos Soriano 2017-08-14 13:54:43 UTC
Review of attachment 357494 [details] [review]:

Looks good now.
Comment 18 Carlos Soriano 2017-08-14 13:55:08 UTC
(In reply to António Fernandes from comment #15)
> Created attachment 357545 [details] [review] [review]
> file: Use Unicode ellipsis and em dash for default attribute strings
> 
> This is supposed to apply on top of the previous patch. It converts more
> instances of "..." than the one from the previous patch.
> 
> Carlos, should I merge the two patches or is it better to keep the changes
> separated like this?

Separated is fine, thanks!
Comment 19 António Fernandes 2017-08-14 14:06:02 UTC
Great! We may close a 15 years old bug. :) Feel free to push for me if this doesn't break any freeze.
Comment 20 Simon Howard 2017-08-14 17:55:55 UTC
Almost 15 years, anyway. Thanks folks, I'm really excited to see my bug finally being fixed. It beats my previous record of 5 years for bug 304336.
Comment 21 Carlos Soriano 2017-08-17 13:59:12 UTC
Attachment 357494 [details] pushed as 0fe9cc2 - file: Change string of unreadable directory item count
Attachment 357545 [details] pushed as 33694f0 - file: Use Unicode ellipsis and em dash for default attribute strings