From d2566e8eed19580e635617465b0bcda7adb772ab Mon Sep 17 00:00:00 2001 From: Sebastien Estienne Date: Tue, 6 Sep 2005 18:02:56 +0000 Subject: * some cleaning * fixed _sftp-ssh._tcp.sh git-svn-id: file:///home/lennart/svn/public/service-discovery-applet/trunk@11 3be567f1-68ff-0310-b24a-ad7cc433fd2f --- scripts/_sftp-ssh._tcp.sh | 4 ++-- 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": # -- cgit