summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gnometerminal.py4
-rw-r--r--plugins/nautilus.py4
2 files changed, 6 insertions, 2 deletions
diff --git a/plugins/gnometerminal.py b/plugins/gnometerminal.py
index d97a320..01fd83f 100644
--- a/plugins/gnometerminal.py
+++ b/plugins/gnometerminal.py
@@ -95,7 +95,9 @@ class plugin_gnometerminal:
return store
- def connect(self, name, stype, hostname, address, port, txts):
+ def connect(self, use_host_names, name, stype, hostname, address, port, txts):
+ if use_host_names == True:
+ address = hostname
print "connecting using gnometerminal"
if txts.has_key("u"):
username = self.SshLogin(name, txts["u"])
diff --git a/plugins/nautilus.py b/plugins/nautilus.py
index e208a8c..4cf82a2 100644
--- a/plugins/nautilus.py
+++ b/plugins/nautilus.py
@@ -22,7 +22,9 @@ class plugin_nautilus:
self.author = "Sébastien Estienne"
self.description = "Accessing zeroconf services using Nautilus"
- def connect(self, name, stype, hostname, address, port, txts):
+ def connect(self, use_host_names, name, stype, hostname, address, port, txts):
+ if use_host_names == True:
+ address = hostname
print "connecting using nautilus"
path = get_txt_value(txts,"path")
username = get_txt_value(txts,"u")