Alt+F2 - ssh:// and smb:// access doesn't work in Unity (should open Nautilus)

Bug #770126 reported by Deejay_TNT
36
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Unity
Fix Released
Wishlist
Angelo Compagnucci
unity-2d
Invalid
Wishlist
Andrea Grandi
unity-lens-applications
Fix Released
Wishlist
Angelo Compagnucci
unity (Ubuntu)
Fix Released
Undecided
Unassigned
unity-lens-applications (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

When using Alt+F2 in Unity, then typing anything like:
ssh://192.168.0.18
or
smb://192.168.0.18
,
then Unity looks for and offers previously typed combinations, but clicking/hitting Enter does NO action.

Therefore, if I want to open Samba share or do Scp in Nautilus GUI - it doesn't work with unity's Alt+F2, as it used to work with Classic Gnome.

Tags: bitesize
affects: unity → unity-place-applications
Changed in unity-place-applications:
status: New → Confirmed
Changed in unity-place-applications (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, would be nice to get back indeed, Didier said he would work on that

Changed in unity-place-applications (Ubuntu):
importance: Undecided → Wishlist
Changed in unity-place-applications:
importance: Undecided → Wishlist
assignee: nobody → Didier Roche (didrocks)
Changed in unity:
status: New → Confirmed
importance: Undecided → Wishlist
assignee: nobody → Didier Roche (didrocks)
milestone: none → backlog
Changed in unity-2d:
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

can be an easy fix for anyone wanted to work on that (grepping the activation result and launching the right nautilus command).
Please, ping on #ayatana if anyone is waiting to work on that :)

Changed in unity:
assignee: Didier Roche (didrocks) → nobody
Changed in unity-lens-applications:
assignee: Didier Roche (didrocks) → nobody
tags: added: bitesize
Revision history for this message
Andrea Grandi (andreagrandi) wrote :

@didrocks ping! I'd like to take care of this bug if it's ok for you. I've already assigned it to me.
We'll talk tomorrow so you can give me some suggestion about how to start :)

Changed in unity-2d:
assignee: nobody → Andrea Grandi (andreagrandi)
Changed in unity-lens-applications (Ubuntu):
status: New → Confirmed
Revision history for this message
Andrea Grandi (andreagrandi) wrote :

Is there a list of supported services? I mean.... how can I know if it's a simple command or a "url" to be properly handled?
In the case of Unity-2D we can manage "ssh://...." ulrs using the QDesktopServices class, but in case of a command we should use QProcess instead. Any ideas about this?

Revision history for this message
David Murrell (david-murrell) wrote :

I think I've partially solved this by updating the /usr/share/applications/nautilus.desktop file, and changing this line:

MimeType=inode/directory;application/x-gnome-saved-search;
to be:
MimeType=inode/directory;application/x-gnome-saved-search;x-scheme-handler/smb;x-scheme-handler/ssh;

Then running sudo update-desktop-database to update the file /usr/share/applications/mimeinfo.cache

Hat tip to the instructions here: http://jarrpa.net/2011/10/28/creating-custom-url-handlers-in-ubuntu-11-04-11-10-gnome-3-0/

I'm not certain that this entirely works (it's not quite deterministic), but I'll give the machine a rebot and see if its stuck.

This works because this patch was added:
http://bazaar.launchpad.net/~unity-team/unity-lens-applications/trunk/revision/202

This calls AppInfo.launch_default_for_uri (orig, null), which looks up the native gnome url handler.

Something that really isn't documented anywhere - to get debug output, find the program like so:

david@silver:~/unity-lens-applications-0.4.12$ ps axfu|grep lens
david 15396 0.0 0.6 206424 13268 ? Sl 01:04 0:03 /usr/lib/unity-lens-applications/unity-applications-daemon

Kill it and restart it, and then it will produce output like this:

david@silver:~/unity-lens-applications-0.4.12$ kill 15396
david@silver:~/unity-lens-applications-0.4.12$ /usr/lib/unity-lens-applications/unity-applications-daemon
(process:4185): unity-applications-daemon-DEBUG: daemon.vala:256: Building initial application menu

Leaving the program running, run the command that isn't working, and this will get outputted:

(process:4185): unity-applications-daemon-WARNING **: daemon.vala:744: Failed to launch URI ssh://throium

Revision history for this message
David Murrell (david-murrell) wrote :

So, smb://server name worked, but ssh://server didn't.

Added this line: daemon.vala:745 warning ("Error %s", error.message);

rebuilt from source package unity-lens-applications-0.4.12 )

Tried mounting a ssh://server, and got this error message:

(process:11025): unity-applications-daemon-WARNING **: daemon.vala:744: Failed to launch URI ssh://thorium
(process:11025): unity-applications-daemon-WARNING **: daemon.vala:745: Error The specified location is not mounted

Mounting a previously not mounted smb server doesn't cause this error, even when the smb server doesn't respond, or fails to respond with a list of shares.

Starting the command on the command line: nautilus ssh://server
then logging in,
then closing the nautilus window (though not unmounting it)
then running the ssh://server from the Alt-F2 prompt succeeds.

Changed in unity-lens-applications:
assignee: nobody → Angelo Compagnucci (angelo-compagnucci)
Michal Hruby (mhr3)
Changed in unity:
milestone: backlog → 5.8.0
Changed in unity-lens-applications:
milestone: none → 5.8.0
status: Confirmed → In Progress
Changed in unity:
status: Confirmed → In Progress
assignee: nobody → Angelo Compagnucci (angelo-compagnucci)
Omer Akram (om26er)
no longer affects: unity-place-applications (Ubuntu)
Changed in unity-lens-applications (Ubuntu):
status: Confirmed → In Progress
importance: Undecided → Wishlist
Changed in unity-lens-applications:
status: In Progress → Fix Committed
Changed in unity:
status: In Progress → Fix Committed
Changed in unity:
status: Fix Committed → Fix Released
Changed in unity-lens-applications:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-lens-applications - 5.8.0-0ubuntu1

---------------
unity-lens-applications (5.8.0-0ubuntu1) precise-proposed; urgency=low

  * New upstream release.
    - Dash - No message displayed when no results are returned in the
      Dash (LP: #711199)
    - Dash - When multiple results have equal string match relevancy ranking,
      those with equal ranking should be then sorted by frequency of use.
      (LP: #871900)
    - Dash - Combined filters lead to wrong search result in Applications lens
      (LP: #942878)
    - Alt+F2 - ssh:// and smb:// access doesn't work in Unity (should open
      Nautilus) (LP: #770126)
 -- Didier Roche <email address hidden> Fri, 23 Mar 2012 15:23:52 +0100

Changed in unity-lens-applications (Ubuntu):
status: In Progress → Fix Released
Changed in unity (Ubuntu):
status: New → Fix Released
Changed in unity-2d:
status: Confirmed → Invalid
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.