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 596234 - File chooser could mimic Nautilus and honor .hidden files
File chooser could mimic Nautilus and honor .hidden files
Status: RESOLVED DUPLICATE of bug 587806
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.16.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
: 622009 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-09-24 21:12 UTC by Florent V.
Modified: 2012-11-26 15:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Florent V. 2009-09-24 21:12:42 UTC
There is some discussion going on or now closed about aligning certain GtkFileChooser behavior with Nautilus behavior.

See:
- #143599 Share "show hidden" option with Nautilus (planned, not implemented yet)
- #355851 File Dialog shows Backup Files (fixed to align with Nautilus behavior)

I would like to add a feature request in the same vein (but hopefully different enough for this to be a separate bug): support hiding files and folders with .hidden files in GtkFileChooser.

If you think .hidden files and their support in Nautilus is wrong, i hope i can convince they're not. See the addendum below. .hidden files may seem a bit hackish (in the Mac OS X way), but they do have some interesting (i dare not say "life saving") uses, especially when you can't rely on changes upstream to Make Things Right.

As Nautilus doesn't show those files and folders hidden thanks to .hidden files, i think GtkFileChooser should do the same so that files and folders hidden for the sake of clarity, ease of use or discretion remain hidden in don't-show-hidden-files mode, and are only shown in show-hidden-files mode.


ADDENDUM: Use cases for .hidden files: 

- Putting carefully written .hidden files in the root and /home directory would allow to show a "clean" list of user-accessible content. Typically, users may want to use /mnt/, /media/, or a few other directories, but not /usr/ or /var/ or /etc/ if they are not advanced users. Note that i'm not saying distributions should implement that kind of "hide system files by default" behavior, but as a system administrator it would be useful to be able to implement that kind of "light view" in computers you manage for non-tech-savy users (be it your parents or grandma, or your company's employees).

- Some distributions provide a ~/Private folder, that is a mount point for encrypted user data. I think in the future they plan to make setting this folder up easier (with a GUI). By default the ~/Private folder will be visible, but a user may want to hide it from other people who may have access to his session (family, coworkers…) to some extent.

- A user's home folder may contain a set of folders whose name you can't change without breaking some system functionality. A user may want to hide the Templates folder (for instance) to make his home folder less cluttered and easier to scan in don't-show-hidden-files mode.

- Some applications are rude enough to place non-hidden files and folders in the user's home folder. I remember that VMWare Server was (is?) such a culprit. When those files or folders make very little sense in daily use, the user may want to hide them.
Comment 1 Allan Day 2010-06-23 22:50:33 UTC
*** Bug 622009 has been marked as a duplicate of this bug. ***
Comment 2 Allison Karlitskaya (desrt) 2012-11-26 14:47:42 UTC

*** This bug has been marked as a duplicate of bug 587806 ***