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 689800 - Treat lost+found directory as a hidden file
Treat lost+found directory as a hidden file
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2012-12-06 19:06 UTC by David Zeuthen (not reading bugmail)
Modified: 2012-12-06 21:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (2.77 KB, patch)
2012-12-06 20:47 UTC, David Zeuthen (not reading bugmail)
none Details | Review
Better patch (2.98 KB, patch)
2012-12-06 20:55 UTC, David Zeuthen (not reading bugmail)
committed Details | Review

Description David Zeuthen (not reading bugmail) 2012-12-06 19:06:04 UTC
Most Unix/Linux filesystems have a lost+found/ directory in their root which is really just an annoying and useless implementation detail if you are not the super user. I suggest that we treat this directory as if it was a dot-file, e.g. hide it by default but display when "Show Hidden Files" is checked.
Comment 1 David Zeuthen (not reading bugmail) 2012-12-06 19:07:12 UTC
Btw, here's a screenshot showing the the lost+found/ directory (ignore the name, I did the screenshot for bug 684406)

 http://people.freedesktop.org/~david/gnome-missing-symbolic-raid-icon.png
Comment 2 Cosimo Cecchi 2012-12-06 19:10:22 UTC
I agree - couldn't we do this in GIO directly though?
Comment 3 William Jon McCann 2012-12-06 20:16:11 UTC
I think it would be nice to hide a bunch of other directories in the system root "/" that are really implementation details and don't contain what I think of as files. Basically just dev, sys, and proc. They don't have files the same way that usr and etc do.

Talking to David about this, it might be better to have a .hidden file in / to do this instead of doing it in the code. Though I'm not sure what component would do that... maybe systemd?
Comment 4 David Zeuthen (not reading bugmail) 2012-12-06 20:17:35 UTC
(In reply to comment #2)
> I agree - couldn't we do this in GIO directly though?

Certainly. In fact, that's a much better idea since we also want this in the file chooser. I'll attach a patch.
Comment 5 David Zeuthen (not reading bugmail) 2012-12-06 20:43:42 UTC
(In reply to comment #3)
> I think it would be nice to hide a bunch of other directories in the system
> root "/" that are really implementation details and don't contain what I think
> of as files. Basically just dev, sys, and proc. They don't have files the same
> way that usr and etc do.
> 
> Talking to David about this, it might be better to have a .hidden file in / to
> do this instead of doing it in the code. Though I'm not sure what component
> would do that... maybe systemd?

I would expect the OS to include that file so it can update when new top-levels are added. On Fedora I guess it would be in the 'filesystem' RPM.
Comment 6 David Zeuthen (not reading bugmail) 2012-12-06 20:47:57 UTC
Created attachment 230916 [details] [review]
Proposed patch
Comment 7 David Zeuthen (not reading bugmail) 2012-12-06 20:55:22 UTC
Created attachment 230917 [details] [review]
Better patch

The previous patch didn't work in the root filesystem. Fix that.
Comment 8 David Zeuthen (not reading bugmail) 2012-12-06 21:25:04 UTC
Comment on attachment 230917 [details] [review]
Better patch

Committed to master after talking to Alex on IRC.

http://git.gnome.org/browse/glib/commit/?id=d77948eadf39ff4fdc001f679c7628e84e3af461