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 315322 - Navigational nautilus closes window if initial path is spaced
Navigational nautilus closes window if initial path is spaced
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: general
2.12.x
Other All
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
: 320610 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-09-06 02:14 UTC by David Nielsen
Modified: 2015-03-24 13:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
gnome-panel patch (2.50 KB, patch)
2005-10-07 19:39 UTC, Christian Neumair
none Details | Review

Description David Nielsen 2005-09-06 02:14:35 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
Comment 1 Christian Neumair 2005-09-06 18:33:26 UTC
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.
Comment 2 Sebastien Bacher 2005-09-19 07:52:29 UTC
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?
Comment 3 Sebastien Bacher 2005-09-19 08:12:31 UTC
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);
Comment 4 Sebastien Bacher 2005-09-19 11:05:39 UTC
happens with the nautilus place menu too...
Comment 5 Christian Neumair 2005-10-07 19:38:43 UTC
Sebastien: Huh? I totally fail to reproduce this.

The panel potentially passes broken URIs to nautilus, btw. Attaching a patch.
Comment 6 Christian Neumair 2005-10-07 19:39:12 UTC
Created attachment 53204 [details] [review]
gnome-panel patch
Comment 7 Christian Neumair 2005-10-07 20:10:07 UTC
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.
Comment 8 Vincent Untz 2005-10-08 06:42:32 UTC
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 ;-)).
Comment 9 Sebastien Bacher 2005-10-09 15:53:04 UTC
vincent, where did you do the changes? The CVS has not change since 2.12.1 ...
Comment 10 Vincent Untz 2005-10-09 21:40:50 UTC
Forgot to commit ;-)
Comment 11 Sebastien Bacher 2005-11-13 14:32:23 UTC
*** Bug 320610 has been marked as a duplicate of this bug. ***