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 314627 - If period in directory, doesn't show in save or open dialog
If period in directory, doesn't show in save or open dialog
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.6.x
Other Windows
: Normal minor
: ---
Assigned To: gtk-bugs
gtk-bugs
: 329430 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-08-26 23:38 UTC by Steven Michaels
Modified: 2006-02-21 13:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Steven Michaels 2005-08-26 23:38:28 UTC
In Windows XP Service Pack 2, I have a directory ".org" (without the quotes.) 
The save/open dialog will not show this directory, like it should.  Periods in
other places besides the very first character does work, however.
Comment 1 Sven Neumann 2005-08-26 23:47:07 UTC
That behaviour is intentional, at least on UNIX systems. Directories and files
starting with a dot are hidden. You can get them listed by right-clicking and
enabling "Show Hidden Files". If the leading dot doesn't have this meaning on
Windows, then this report should be reassigned to GTK+. Up to the GTK+
developers to decide whether they want to change the Win32 implementation of the
file-chooser dialog then.
Comment 2 Michael Schumacher 2005-08-28 09:43:48 UTC
A leading dot doesn't have a special meaning per se, but it is somewaht special
because not every programm will let you create such files or folders at all. For
example, in a console, 'mkdir .net' is not problem, but Explorer will complain
about a missing name.
Comment 3 Sven Neumann 2005-08-29 14:23:33 UTC
Reassign to gtk+ then? Michael, what do you think?
Comment 4 Michael Schumacher 2005-08-30 14:49:57 UTC
Yes, reassign.
Comment 5 Federico Mena Quintero 2005-11-11 20:16:40 UTC
See gtkfilesystemwin32.c:1526:

      if (types & GTK_FILE_INFO_IS_HIDDEN)
	{
	  /* Unix dot convention or the Windows hidden attribute */
	  gboolean is_hidden = basename[0] == '.' ||
	    !!(wfad.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN);
	  gtk_file_info_set_is_hidden (info, is_hidden);
	}

We probably want to remove the '.' test from there.  Tor, what do you think?
Comment 6 Tor Lillqvist 2005-11-12 01:15:57 UTC
Umm, yes. Fixed in HEAD and gtk-2-8:

2005-11-12  Tor Lillqvist  <tml@novell.com>

	* gtk/gtkfilesystemwin32.c (filename_get_info): Don't hide
	dotfiles, no such convention on Win32. Just hide files with the
	hidden attribute. (#314627)
Comment 7 Tor Lillqvist 2006-02-21 13:14:43 UTC
*** Bug 329430 has been marked as a duplicate of this bug. ***