Nemo Open Terminal doesn't work on remote GVFS locations
Bug #1119283 reported by
Tyler Wagner
This bug affects 7 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linux Mint |
New
|
Undecided
|
Unassigned |
Bug Description
Using Linux Mint 14 nadia 64-bit with Cinnamon, Nemo's Open Terminal doesn't work when run from a GVFS location such as:
In Nautilus, you have two options in the right-click menu in such locations:
Open in Remote Terminal
Open in Local Terminal
The first opens a terminal and calls "ssh user@host" for you. The second opens a normal terminal with the present directory set to the GVFS folder, such as "/run/user/
In Nemo, only "Open Terminal" appears, and it starts a normal shell in your home directory. Either supporting the Nautilus plugin, or reimplementing its functionality, would be very useful.
To post a comment you must log in.
You could create two actions in ~/.local/ share/nemo/ actions.
File remote_ terminal1. nemo_action:
[Nemo Action] de]=Aktuellen Ordner im entfernten Terminal öffnen terminal. py %F>
Name=Open in remote terminal
Comment=Open current folder in remote terminal
Name[de]=Im entfernten Terminal öffnen
Comment[
Exec=<remote_
Icon-Name=terminal
Selection=none
Extensions=dir;
Dependencies=ssh;
File remote_ terminal2. nemo_action:
[Nemo Action] terminal. py %F>
Name=Open in remote terminal
Comment=Open this folder in remote terminal
Name[de]=Im entfernten Terminal öffnen
Comment[de]=Diesen Ordner im entfernten Terminal öffnen
Exec=<remote_
Icon-Name=terminal
Selection=s
Extensions=dir;
Dependencies=ssh;
And finally a Python script remote_terminal.py:
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import sys
import subprocess
path = sys.argv[1]
if '/sftp:' in path:
settings[ name] = value
sftp = path.split('/sftp:', 1)[1]
settings = {}
options, sep, settings['path'] = sftp.partition('/')
for opt in options.split(','):
name, sep, value = opt.partition('=')
cmd = ['gnome-terminal', '-e', directory' , path]
'ssh %(user)s@%(host)s -t "cd /%(path)s && bash --login"' % settings]
else:
cmd = ['gnome-terminal', '--working-
subprocess. call(cmd)