No results showing in dash

Bug #1248513 reported by Luke Huxley
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Unity SSH search Scope
New
Undecided
Unassigned

Bug Description

On a fresh install of Ubuntu 13.10 and the unity-scope-sshsearch package the Unity SSH search scope does not return any results.

Sanity checks:
* Logged out and in after install
* Checked presence of Sshsearch under "Dash plugins" in the "Applications" dash
* Disabled and enabled the dash plugin via the dash
* .ssh/config file exists and contains valid data

garnus (garnus)
Changed in unity-scope-sshsearch:
status: New → Confirmed
status: Confirmed → New
Revision history for this message
garnus (garnus) wrote :

Hi,
I found a temporary solution.
Edit as root(sudo):
/usr/share/unity-scopes/sshsearch/unity_sshsearch_daemon.py
Change line 67:
self._config_hosts = [h['host'].lower() for h in c._config if '*' not in h['host']]
to:
self._config_hosts = [h['host'][0].lower() for h in c._config if '*' not in h['host']]

If you have turned online results off you must remove/comment out the folowing lines(line number 98-100):

if self.preferences.props.remote_content_search != Unity.PreferencesManagerRemoteContent.ALL:
   search.emit('finished')
   return

Revision history for this message
Jakob Reiter (jakommo) wrote :

Hello,
I upgraded to 13.10 today and not being able to ssh from the dash annoys me.
Tried garnus workaround but still no results (also tried with a newly created user).
Any hints on how to debug this?

Revision history for this message
Alfred E. Neumayer (beidl) wrote :

garnus' workaround works for me. This should be fixed and added to the default set of scopes on the desktop. Sysadmins are going to love it.

Revision history for this message
Jakob Reiter (jakommo) wrote :

ok, did something wrong before. the workaround is working now for me too.
hope this will be fixed in 14.04, just love this feature.

Revision history for this message
Roger (infroger) wrote :

Since the last reponse is 21 months old, I'm adding a note mentioning that this scope still works in 15.10 (Wily Werewolf) after the aforementioned work around, despite apparently not being maintained, and that I loved it.

Adding a diff file containing the workaround and one addition to allow for parameters for the terminal app. For instance, I want the terminals opened with profile "remote", so I added:

TERMINAL_APP = 'gnome-terminal'
TERMINAL_OPT = '--window-with-profile=remote'
TERMINAL_APP_MIMETYPE = 'application/x-desktop'

        if port == SSH_DEFAULT_PORT:
            # don't call with the port option, because the host definition
            # could be from the ~/.ssh/config file
            GLib.spawn_command_line_async('%s %s -e "ssh %s"' % (TERMINAL_APP, TERMINAL_OPT, target))
        else:
            GLib.spawn_command_line_async('%s %s -e "ssh -p %s %s"' % (TERMINAL_APP, TERMINAL_OPT, port, target))

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.