GNOME Bugzilla – Bug 689800
Treat lost+found directory as a hidden file
Last modified: 2012-12-06 21:25:14 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.
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
I agree - couldn't we do this in GIO directly though?
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?
(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.
(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.
Created attachment 230916 [details] [review] Proposed patch
Created attachment 230917 [details] [review] Better patch The previous patch didn't work in the root filesystem. Fix that.
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