~bernd-sch/onehundredscopes/sshsearch

« back to all changes in this revision

Viewing changes to unity-lens-sshsearch.py

  • Committer: Bernd Schlapsi
  • Date: 2012-01-02 14:06:36 UTC
  • Revision ID: brot@gmx.info-20120102140636-qv0svbfzh50f0rx7
correct some pathes and the terminal-app call

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
        hoststring = uri.split('/')[-1]
136
136
        host, port = self.__parse_hoststring(hoststring)
137
137
 
138
 
        GLib.spawn_command_line_async('%s -e "ssh -p %s %s"' % (TERMINAL_APP, port, host))
 
138
        if port == 22:
 
139
            GLib.spawn_command_line_async('%s -e "ssh %s"' % (TERMINAL_APP, host))
 
140
        else:
 
141
            GLib.spawn_command_line_async('%s -e "ssh -p %s %s"' % (TERMINAL_APP, port, host))
 
142
 
139
143
        return Unity.ActivationResponse(handled=Unity.HandledType.HIDE_DASH, goto_uri='')
140
144
 
141
145