GNOME Bugzilla – Bug 315322
Navigational nautilus closes window if initial path is spaced
Last modified: 2015-03-24 13:00:52 UTC
Please describe the problem: When Nautilus is set in navigational mode and one opens a bookmark path with a space in the name, such as my downloads folder "Hentede filer", it will open the window then promptly close it again. Another funny effect is that nautilus will also interpret "Hentede filer" as two identical dirs in the sidepane treelist. *please note here that "Hentede filer" is the default danish translation for Downloads, that means this is broken on every single danish GNOME 2.12 (and 2.10) set in Browser mode, by default (granted the user has to create the bookmark and change behavior to browser mode)* Steps to reproduce: 1. create and bookmark dir with name containing a space 2. set nautilus in navigational mode by default 3. open said folder via the places menu Actual results: nautilus opens then closes - very unexpected behavior Expected results: nautilus should of course display my files Does this happen every time? yes sir.. 100% reproducable Other information: Here's the initial bug report filed with Fedora Core back in June when I first discovered this problem: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=161709
Thanks for your bug report! I am unable to reproduce the closing issue. However, I can reproduce that the bookmarked path is displayed twice in the tree sidebar.
Same issue with 2.12 when opening from the panel, it prints this: "** (nautilus:11821): WARNING **: Possibly invalid new URI 'file:///tmp/One Folder' This can cause subtle evils like #48423" Maybe a gnome-panel issue?
panel-menu-items.c uses: url = gnome_vfs_make_uri_from_input_with_dirs (path, GNOME_VFS_MAKE_URI_DIR_HOMEDIR); gnome_url_show_on_screen (url, screen, &error);
happens with the nautilus place menu too...
Sebastien: Huh? I totally fail to reproduce this. The panel potentially passes broken URIs to nautilus, btw. Attaching a patch.
Created attachment 53204 [details] [review] gnome-panel patch
Sebastien told me on IRC that he "(doesn't know) why (he) commented that" (i.e. comment 4). I'm reassigning this to gnome-panel, although Nautilus obviously can still be crashed by passing it malformed URIs.
I removed the unescape thing, but didn't use the rest of the patch. Christian, btw, g_filename_display_basename is really what you need to use in such cases (and nautilus does it too, if it can help convince you ;-)).
vincent, where did you do the changes? The CVS has not change since 2.12.1 ...
Forgot to commit ;-)
*** Bug 320610 has been marked as a duplicate of this bug. ***