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 337622 - file chooser should hide files listed in .hidden
file chooser should hide files listed in .hidden
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.8.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2006-04-07 13:19 UTC by Sebastien Bacher
Modified: 2007-04-04 20:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastien Bacher 2006-04-07 13:19:01 UTC
That bug has been opened on https://launchpad.net/distros/ubuntu/+source/gtk+2.0/+bug/38091

"nautilus hides files/folders that are listed in a file called .hidden in the current folder.

the file-chooser (open/save) should do the same.
...
> What version of Ubuntu do you use? That should work fine with current GTK as pointed by http://bugzilla.gnome.org/show_bug.cgi?id=129170 upstream
...
all this is in current dapper:

as root:
cd /
ls > .hidden
removed home and tmp from the .hidden file

now open nautilus as normal user,
 - navigate to /,
 - you only see home and tmp

open gedit, file->open, click on File Sytem
 -> list of all folders and files in /
 -> rightclick -> show hidden files, you will see .hidden too."


dapper has GTK 2.8.16
Comment 1 Thomas D Ahle 2006-05-31 09:03:52 UTC
Same problem in fc5
Comment 2 Matthias Clasen 2006-06-01 02:10:39 UTC
hmm, this used to work, and the code for reading .hidden files is still there.
Comment 3 Kristian Rietveld 2006-06-02 10:54:05 UTC
I didn't break it, since all my changes are on HEAD (and there it works fine). Note that this appears to be broken in gtk+ 2.8.x.

Comment 4 Federico Mena Quintero 2007-01-25 19:50:51 UTC

*** This bug has been marked as a duplicate of 314820 ***
Comment 5 Sebastien Bacher 2007-01-26 08:22:07 UTC
federico, are you sure that's a duplicate from that crasher?
Comment 6 André Dahlqvist 2007-04-03 21:24:39 UTC
This bug is certainly not a duplicate of bug 314820. Reopening. This bug is still present in gtk 2.10.11.
Comment 7 Emmanuele Bassi (:ebassi) 2007-04-03 21:54:26 UTC
(In reply to comment #6)
> This bug is certainly not a duplicate of bug 314820. Reopening. This bug is
> still present in gtk 2.10.11.

how do you tell? have you tested with the GtkFileSystemUnix backend?

Comment 8 André Dahlqvist 2007-04-04 16:03:38 UTC
> how do you tell? have you tested with the GtkFileSystemUnix backend?

By using Open in gedit and browsing to the directory that has the .hidden file in it. I'm using the gtk that's used with Ubuntu Feisty; no clue what backend that's using.
Comment 9 Emmanuele Bassi (:ebassi) 2007-04-04 16:14:35 UTC
try browsing the same directory with the tests/testfilechooser test case compiled from gtk+; that code forces the usage of the unix backend instead of the gnome-vfs one (even though chances are that you are using the latter).
Comment 10 André Dahlqvist 2007-04-04 18:48:25 UTC
I just tried it; browsing that directory with tests/testfilechooser hides the directories specified in .hidden. Is it by choice that this is not the behaviour with the gnome-vfs backend?
Comment 11 Emmanuele Bassi (:ebassi) 2007-04-04 20:11:20 UTC
no, it's a bug in the GtkFileSystemGnomeVfs backend provided by libgnomeui. see bug #314280 which has a patch but must still be reviewed.

closing this bug, as the support for .hidden files is known to work in the gtk-2-10 branch and in trunk as well.