diff options
author | Sebastien Estienne <sebastien.estienne@gmail.com> | 2005-09-06 18:02:56 +0000 |
---|---|---|
committer | Sebastien Estienne <sebastien.estienne@gmail.com> | 2005-09-06 18:02:56 +0000 |
commit | d2566e8eed19580e635617465b0bcda7adb772ab (patch) | |
tree | 2a0e3e3978cdf1c11879599e6f53dfd6e62fa8df | |
parent | afda8873baf0ae1f7c90f8e8fea0c4dcaa836aeb (diff) |
* 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
-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": # |