GNOME Bugzilla – Bug 314627
If period in directory, doesn't show in save or open dialog
Last modified: 2006-02-21 13:14:43 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.
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.
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.
Reassign to gtk+ then? Michael, what do you think?
Yes, reassign.
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?
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)
*** Bug 329430 has been marked as a duplicate of this bug. ***