Comment 5 for bug 1248513

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))