diff options
-rwxr-xr-x | scripts/_sftp-ssh._tcp.sh | 4 | ||||
-rwxr-xr-x | src/service-discovery-applet.in | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/scripts/_sftp-ssh._tcp.sh b/scripts/_sftp-ssh._tcp.sh index 0b6a62f..5ecf95f 100755 --- a/scripts/_sftp-ssh._tcp.sh +++ b/scripts/_sftp-ssh._tcp.sh @@ -24,7 +24,7 @@ fi if [ ! -z "$TXT_path" ] then - path=`echo $TXT_path | sed -e 's/^\///g'` + path=/`echo $TXT_path | sed -e 's/^\///g'` fi -sftp "$USERNAME$ADDRESS:$PORT/$path" +gnome-terminal --tab -t "$NAME" -e "sftp -oPort=$PORT $USER_NAME$ADDRESS:$path" diff --git a/src/service-discovery-applet.in b/src/service-discovery-applet.in index 7d56e35..05f8a8e 100755 --- a/src/service-discovery-applet.in +++ b/src/service-discovery-applet.in @@ -51,8 +51,6 @@ gc_services = "/apps/service-discovery-applet/services" #from gettext import gettext as _ -#type_browsed = ('_ssh._tcp', '_http._tcp','_ftp._tcp') - show_local_services = False show_notifications = False show_applet_name = False @@ -82,7 +80,6 @@ def service_resolved(interface, protocol, name, type, domain, host, aprotocol, a print "\tHost %s (%s), port %i, TXT data: %s" % (host, address, port, avahi.txt_array_to_string_array(txt)) if os.path.exists("@scriptsdir@/%s.sh" % type): cmd = '@scriptsdir@/%s.sh "%s" %s %s %i "%s"' % (type, name, host, address, port," ".join(avahi.txt_array_to_string_array(txt))) - print cmd os.system(cmd) # if type == "_http._tcp": # |