smb url don't work in the run application dialog or as bookmark

Bug #291259 reported by Brendan Zerr
92
This bug affects 8 people
Affects Status Importance Assigned to Milestone
GNOME Panel
Fix Released
Medium
One Hundred Papercuts
Invalid
Undecided
Unassigned
gvfs (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: nautilus

In the GNOME 'Run Application Dialog', typing smb://testhost no longer opens the share browser, but errors out saying:

Could not open location 'smb://testhost/'
No application is registered as handling this file.

Using Ubuntu 8.10, just re-installed today.
Package: nautilus 1:2.24.1-0ubuntu1

Related branches

Revision history for this message
Sebastien Bacher (seb128) wrote :

confirming, the dialog is there to run applications though not to open locations, you can use ctrl-l on your desktop too

Changed in nautilus:
assignee: nobody → desktop-bugs
importance: Undecided → Low
Revision history for this message
Samuel Stringham (me-samuelstringham) wrote :

Confirming. I think this other error may be related:

By clicking on 'Places->Windows Network' , I get an error that reads:

**Could not open location 'smb:///'**

No application is registered as handling this file

This is after an upgrade, so I don't know if that link was set up by me as a custom bookmark, or by some program I installed earlier.

'Places->Network->Windows Network' functions just fine though.

In fact, if you follow 'Places->Network->Windows Network', then hit ctrl-D or Bookmarks->add bookmark, the same broken link shows up in your "Places" list.

Revision history for this message
Nathaniel W. Turner (nturner) wrote :

As Samuel mentioned, this breaks all bookmarked folders that are smb://... URIs. Accessing the bookmark from within nautilus works, but accessing from the Places menu fails with the aforementioned error message. This worked until upgrading to 8.10.

Revision history for this message
Leif Gruenwoldt (leifer) wrote :

Yes this also affects any 'Windows share' that has been bookmarked.

Steps to reproduce

1. Places->Connect to Server...
2. select Service Type 'Windows share'
3. enter appropriate login details, but DO NOT enter the share name
4. check 'Add bookmark'
5. click connect

* A nautilus window will open, close it for now

5. Places->Bookmarks and select the windows share we just created

* Could not open location 'smb://example-server/' No application is registered as handling this file

6. Now navigate to Places->Home (just start nautilus)
7. In your nautilus window select the Bookmarks menu and choose the windows share we created

* It will work now

Notes:

So back in step 3 when I said DO NOT specify the share name that was very important. If you DO specify the share name, step 5 will work just fine. This is a regression. It worked fine for me in gnome 2.22

Revision history for this message
Bux Markus (markus-bux) wrote :

Ok. I've found a solution. :D

The problem is, that there is no uri-handler for smb.
If you run the followoing commands as user under gnome-terminal it will work again. ;)

gconftool-2 -t string -s /desktop/gnome/url-handlers/smb/command "nautilus \"%s\""
gconftool-2 -t bool -s /desktop/gnome/url-handlers/smb/needs_terminal false
gconftool-2 -t bool -s /desktop/gnome/url-handlers/smb/enabled true

#Greetz,
Cyberspace19

Revision history for this message
Andrea Ratto (andrearatto) wrote :

you rock!
Now the package can be fixed...
btw, the schema is missing as well.

Revision history for this message
Leif Gruenwoldt (leifer) wrote :

Thanks Bux Markus, that worked for me!

Revision history for this message
Bux Markus (markus-bux) wrote :

Ok. the above one is the dirty and quick way, which will do the job.

I have attached a schema file, which will create all needed entries under schema an associate it with the values in /desktop/gnome/...

The schema file will only install the de, en_CA, en_GB and C localization. The other ones i do not know. ;)
BTW: The file will install fine on any system with other languages but the description will only be displayed in english. So maybe you can add your description to the file bevor installing it. ;)

Download the attached file to your desktop and run the following command in an terminal with user rights!

gconftool-2 --install-schema-file=~/Desktop/smb_handler.schemas

After that you can test the success of the installation by running the following commands as user

1) gconftool-2 --get-schema-name /desktop/gnome/url-handlers/smb/command
This schould return "/schemas/desktop/gnome/url-handlers/smb/command"

2)gconftool-2 --get /schemas/desktop/gnome/url-handlers/smb/command
Typ: string
Listentyp: *invalid*
car-Typ: *invalid*
cdr-Typ: *invalid*
Vorgabewert: nautilus "%s"
Besitzer: gnome
Kurzbeschr.: Zu verwendendes Thema
Ausführliche Beschr.: Der Dateiname des zu verwendenden Themas.

So thats it. Start gconf-editor and verify the values.

#Greetz,
Cyberspace19

Revision history for this message
Bux Markus (markus-bux) wrote :

Sorry for the double-post. ;)

You have to use "right-click" -> "save as" to get the attachment in the correct format. If you only click you will only get an ugly file.

Revision history for this message
Sebastien Bacher (seb128) wrote :

that's not clear that the workaround is correct and somebody should rather send the bug to bugzilla.gnome.org than use workaround which can create other issues

Revision history for this message
Sebastien Bacher (seb128) wrote :

could you try if that's still an issue in jaunty?

Revision history for this message
Brendan Zerr (axonxorz) wrote :

Just tested in the daily build of Jaunty-Desktop. The problem still occurs.

Revision history for this message
Sebastien Bacher (seb128) wrote : Re: smb url don't work in the run application dialog
Changed in gnome-panel:
status: New → Triaged
Changed in gnome-panel:
status: Unknown → New
Revision history for this message
Brett Howard (brett-livecomputers) wrote :

If you add a bookmark to an SMB share in Nautilus these bookmarks can be seen in the Places menu. Until you run the fix for this clicking on these links generates the same error message. I see this as a much bigger issue as I've had several customers wonder why this doesn't work. I'll run these commands and save off my images again for the Ubuntu netbooks that I've been selling so as to quit getting this question!

Revision history for this message
Martin Albisetti (beuno) wrote :

Thank you for bringing this bug to our attention. Unfortunately a paper cut should be a small usability issue that affects many people and is quick and easy to fix. I'm afraid this bug can't be addressed as part of this project.
A paper cut is a minor usability annoyance that an average user would encounter on his/her first day of using a new installation of Ubuntu 9.10.

Changed in hundredpapercuts:
status: New → Invalid
Revision history for this message
Alexandre Martani (amartani) wrote :

Why I marked this as a paper cut:
This affects every user who access samba shares. As home networks are becoming more common, and sharing files through samba is very common on these, this is affecting many user. Also, many users from Windows are used to access samba shares using "\\hostname" on command prompt (on Vista, this is even in the start menu), so they see this as an annoyance (compared to Windows). As it is a regression, old users also considers this as an annoyance.
It is very easy to address: the fix is in the comments, just adding a gconf schema and it is gone. Even then, it affects both Intrepid and Jaunty. It is also fits in "is small enough for users to become habituated to it", as you can just start nautilus and type in its address bar, but this involves many more actions.

summary: - smb url don't work in the run application dialog
+ smb url don't work in the run application dialog or as bookmark
Revision history for this message
smitty_ACT (syazici) wrote :

The solution provided by Bux Markus works!

Nice work.

Revision history for this message
Sebastien Bacher (seb128) wrote :

the bug is fixed upstream now

Changed in gnome-panel (Ubuntu):
status: Triaged → Fix Committed
affects: gnome-panel (Ubuntu) → gvfs (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gvfs - 1.3.4-0ubuntu1

---------------
gvfs (1.3.4-0ubuntu1) karmic; urgency=low

  * New upstream version:
    - ftp: Make large FTP transfers work
    - gphoto: use udev instead of hal
    - Fix build on FreeBSD
    - Bugs fixed: 588187, 589915, 573994, 590793, 576229, 589434
      (lp: #403223, #404490, #291259, #364084, #395216)
  * debian/patches/02-port-gphoto2-backend-and-monitor-to-gudev.patch:
    - the change is in the new version
  * debian/patches/90_relibtoolize.patch:
    - new version update

 -- Sebastien Bacher <email address hidden> Mon, 10 Aug 2009 22:24:25 +0200

Changed in gvfs (Ubuntu):
status: Fix Committed → Fix Released
Changed in gnome-panel:
importance: Unknown → Medium
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.