GNOME Bugzilla – Bug 166239
Shortcuts to network sites do not work in 'Places' menu
Last modified: 2015-03-24 13:00:49 UTC
In the file selector, I added a shortcut to shared folder on a Windows computer on my local network. The path of the shortcut is smb://elevation/SharedDocs. A 'SharedDocs' menu item was automatically added to the 'Places' menu on the panel. But, when I select the menu item the folder is not opened. Instead, an error dialog displays, "Cannot display location 'file:///SharedDocs' Details: There is not default action associated with this location."
I dragged the 'SharedDocs' menu item to the panel and displayed the new launcher's properties. The problem is that the URL value is set to "/SharedDocs". If I change it to "smb://elevation/SharedDocs" then the launcher will work correctly.
Will look at this
Created attachment 36963 [details] [review] Proposed patch. This patch fixes the problem for me.
Comment on attachment 36963 [details] [review] Proposed patch. Thanks for the patch. Some comments: + I think it's better to always use gnome_vfs_uri_to_string() even if it's a local URI + you'll need to free full_uri in this case (it's not a const char *) + does it work with URI that have spaces or special letters like "é" in the path?
Created attachment 36995 [details] [review] Proposed patch. This patch makes the modifications listed in the previous comment. I created a local folder named "à é" and added it to my bookmarks. The corresponding 'Places' menu item worked.
You probably want to change the line from: const char *full_uri; to: char *full_uri;
Thanks, I committed this.
Hi! I'm using Fedora Core 4test3, and I'm still getting this error. Would you mind telling me what gnome-panel version the fix went into? I am using the following version: gnome-panel-2.10.1-10
The patch was applied to 2.9.91.