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 143599 - Share "show hidden" option with Nautilus
Share "show hidden" option with Nautilus
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Preferences
3.7.x
Other All
: Normal enhancement
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 148954 542356 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-06-02 17:33 UTC by Brian "netdragon" Bober
Modified: 2012-12-07 17:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6


Attachments
The screenshot of what I see (39.34 KB, image/png)
2004-06-02 18:41 UTC, Brian "netdragon" Bober
  Details
Share hidden setting with GTK (7.23 KB, patch)
2012-11-22 10:06 UTC, Timothy Arceri
needs-work Details | Review
Share hidden setting with GTK (7.03 KB, patch)
2012-12-03 07:13 UTC, Timothy Arceri
reviewed Details | Review
Share hidden setting with GTK (7.09 KB, patch)
2012-12-03 20:53 UTC, Timothy Arceri
accepted-commit_now Details | Review
Add summary and decription to key (1013 bytes, patch)
2012-12-03 21:04 UTC, Timothy Arceri
none Details | Review

Description Brian "netdragon" Bober 2004-06-02 17:33:42 UTC
Gnome 2.6, Fedora Core 2

Go to:

1) Open Preferences > Themes
2) Choose Install Theme
3) Choose Browse...

I have it turned on within nautilus to show directories that start with a
period, yet in the Select File dialog, this isn't available, leading to some
interesting inabilities to access certain files that I can with nautilus.

Please come up with some mechanism to toggle hidden files on and off within this
kind of File Select box, and maybe honor the settings for nautilus.

I notice that Mozilla Firefox's Select File dialog has a checkbox for this.
Please make it so that checkbox is there by default when calling this type of
Select File dialog.

All Select File dialog called within applications created by Gnome.org should
have this checkbox.

Consistency is something users want. Applications much up the Select file dialog
too much, and this is just one example.
Comment 1 Federico Mena Quintero 2004-06-02 18:26:46 UTC
You can press the right mouse button on the file list to get a menu; there you
can toggle whether hidden files get displayed.

Sharing this option with Nautilus is planned.  I'll re-title the bug for clarity.
Comment 2 Brian "netdragon" Bober 2004-06-02 18:37:35 UTC
We still need the checkbox even if this bug is fixed. Having to right click is
inconsistent with other "Select File" dialogs that use checkboxes, and is hard
ti find. Should I file a seperate bug on having the checkbox available?
Comment 3 Brian "netdragon" Bober 2004-06-02 18:38:44 UTC
I tried right clicking on the file list, and nothing happened. Are you sure you
are talking about the same dialog? I'll attach a screenshot.
Comment 4 Brian "netdragon" Bober 2004-06-02 18:41:04 UTC
Created attachment 28278 [details]
The screenshot of what I see
Comment 5 Federico Mena Quintero 2004-08-10 22:24:57 UTC
*** Bug 148954 has been marked as a duplicate of this bug. ***
Comment 6 Federico Mena Quintero 2004-08-10 22:26:54 UTC
Brian, please get GTK+ 2.4.1 or later.
Comment 7 Kjartan Maraas 2005-01-11 23:09:13 UTC
Does this mean it was fixed in 2.4.1?
Comment 8 Matthias Clasen 2005-01-12 05:21:40 UTC
No. We added a way to display hidden files in 2.4.1, but the setting is not
shared with nautilus yet.
Comment 9 Nelson Benitez 2005-09-15 22:41:11 UTC
Also honour the '.hidden file' will make the integration with nautilus
completely in this matter.
Comment 10 Mårten Woxberg 2006-11-29 14:01:48 UTC
Could you please add the hotkey Ctrl+H at the same time?
Comment 11 Roel Huybrechts 2009-01-23 09:05:20 UTC
This is still an issue in Gnome 2.24 (GTK 2.14.4). It is rather important because some files/folders cannot be renamed, so listing them in the .hidden file is the only way to hide them. Unfortunately the latter is not honoured in the filechooser dialogs, as a result these files/folders cannot be hidden from the filechooser.
Comment 12 Florent V. 2009-09-24 21:13:32 UTC
(Bug #542356 is a duplicate of this bug.)

This is still an issue in Gnome 2.26. Not a big one, but a usability issue nonetheless.

The present status looks like this:

1. Hidden files can be shown as of GTK 2.4.1 (announced in 2005 in the comments).
2. The Ctrl+H hotkey was added too (requested in 2006 in the comments).
3. Nautilus is now using a global Gnome setting for this: /desktop/gnome/file_views/show_hidden_files. GtkFileChooser doesn't yet.
4. The feature request that ".hidden" files should be taken into account as Nautilus does was neither discussed nor implemented. I think this should be a different bug, so i created one: #596234.
5. On a slightly related note, GtkFileChooser now mimics Nautilus behavior by considering files ending in ~ (like gedit backup files) as hidden files. The implementation is different, as Nautilus has a setting for that and not GtkFileChooser. See bug #355851.
Comment 13 André Klapper 2009-11-08 14:24:08 UTC
*** Bug 542356 has been marked as a duplicate of this bug. ***
Comment 14 Timothy Arceri 2012-11-22 10:06:25 UTC
Created attachment 229623 [details] [review]
Share hidden setting with GTK

This patch is for Nautilus it uses GTK file chooser GSettings for hidden files.
Comment 15 Federico Mena Quintero 2012-11-22 15:24:17 UTC
Reassigning to Nautilus.

TL;DR - We want Nautilus and GtkFileChooser to share the configuration for "show hidden files".  Timothy's patch makes Nautilus use the file chooser's configuration key for this.

From a casual look the patch looks fine.  I'm not sure if DConf likes it if you just remove a schema like that.
Comment 16 Cosimo Cecchi 2012-11-28 16:48:56 UTC
Review of attachment 229623 [details] [review]:

Looks mostly good to me, but I think Federico is right, and we shouldn't remove the key from the schema completely.

::: libnautilus-private/org.gnome.nautilus.gschema.xml.in
@@ -159,3 @@
-      <_summary>Whether to show hidden files</_summary>
-      <_description>If set to true, then hidden files are shown by default in the file manager.  Hidden files are either dotfiles, listed in the folder's .hidden file or backup files ending with a tilde (~).</_description>
-    </key>

It'd be just wrong for applications to depend on the presence of this key in the schema, but yes we should keep it for now, maybe with a comment in the description that it's deprecated and ignored.
Comment 17 Timothy Arceri 2012-12-03 07:13:14 UTC
Created attachment 230505 [details] [review]
Share hidden setting with GTK

Updated patch leaving in the key and adding comment as suggested.
Comment 18 Cosimo Cecchi 2012-12-03 13:49:05 UTC
Review of attachment 230505 [details] [review]:

::: libnautilus-private/org.gnome.nautilus.gschema.xml.in
@@ +155,3 @@
       <_description>When a folder is visited this viewer is used unless you have selected another view for that particular folder. Possible values are "list-view", and "icon-view".</_description>
     </key>
+    <!-- The "show-hidden-files" key is deprecated and ignored. The "show-hidden" key from "org.gtk.Settings.FileChooser" is now used instead -->

I was actually thinking of a comment in the user-visible description - sorry I should have been clearer in my previous review. That is so that people setting the value with an editor that displays the description (e.g. dconf-editor) would see the comment and change the other key when they realize this doesn't have effect anymore.
Comment 19 Timothy Arceri 2012-12-03 20:53:55 UTC
Created attachment 230573 [details] [review]
Share hidden setting with GTK

Whoops, yes that makes sense now. I've updated the patch to move the comment to the key description. 
Also I'll attach a GTK patch to update the key description in the GTK schema as it currently does not have one.
Comment 20 Timothy Arceri 2012-12-03 21:04:11 UTC
Created attachment 230579 [details] [review]
Add summary and decription to key

Maybe I should create a separate bug for this?

Also for the description to be true the patch for this bug needs to be accetped first: https://bugzilla.gnome.org/show_bug.cgi?id=587806
Comment 21 Cosimo Cecchi 2012-12-03 21:28:16 UTC
(In reply to comment #20)

> Maybe I should create a separate bug for this?
> 
> Also for the description to be true the patch for this bug needs to be accetped
> first: https://bugzilla.gnome.org/show_bug.cgi?id=587806

Yes, please; you can either take the .hidden part out of the description and incorporate it with the patch in bug 587806 or just mark it as a dependency of that bug.
Comment 22 Timothy Arceri 2012-12-04 01:59:37 UTC
I've create bug #689584 for the key summary and description patch.

Also not really related to this bug but thought I would note it he just for anyone following. I have also created a bug #689585 as a reminder to remove the Nautilus specific code that supports .hidden files if/when support is added to Glib.
Comment 23 Cosimo Cecchi 2012-12-04 02:40:02 UTC
Review of attachment 230573 [details] [review]:

Looks good to me.
Comment 24 Cosimo Cecchi 2012-12-04 02:40:53 UTC
Comment on attachment 230579 [details] [review]
Add summary and decription to key

Marking as obsolete, as it's in the other bug.
Comment 25 Timothy Arceri 2012-12-04 05:45:23 UTC
Excellent. Can someone with git access push this.

Thanks,
Tim
Comment 26 Federico Mena Quintero 2012-12-07 17:58:17 UTC
Thanks, Tim!  Pushed to master as 85524e01c37.