From 42c2bb129f9d1704d6e087f3e866825e2c1d16e8 Mon Sep 17 00:00:00 2001 From: Sebastien Estienne Date: Tue, 27 Mar 2007 08:22:07 +0000 Subject: * add support for gobby * bump version number git-svn-id: file:///home/lennart/svn/public/service-discovery-applet/trunk@139 3be567f1-68ff-0310-b24a-ad7cc433fd2f --- plugins/obby.py.in | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 plugins/obby.py.in (limited to 'plugins/obby.py.in') diff --git a/plugins/obby.py.in b/plugins/obby.py.in new file mode 100644 index 0000000..bd28182 --- /dev/null +++ b/plugins/obby.py.in @@ -0,0 +1,30 @@ +# -*- coding: UTF-8 -*- +# -*- python -*- +# Copyright (C) 2006 by Sebastien Estienne +# +# This file may be distributed and/or modified under the terms of +# the GNU General Public License version 2 as published by +# the Free Software Foundation. +# This file is distributed without any warranty; without even the implied +# warranty of merchantability or fitness for a particular purpose. +# See "COPYING" in the source distribution for more information. +# +# $Id$ +# + +from sdapplet.pluginutils import * +import subprocess + +class plugin_obby: + def __init__(self): + self.service_type = ["_lobby._tcp"] + self.author = "Sebastien Estienne" + self.description = "Start an obby sessions with Gobby" + + def connect(self, use_host_names, name, stype, hostname, address, port, txts): + cmdline = ["@toolsdir@/exec_wrapper", "gobby", "--join=%s:%s" % (hostname,port) ] + print cmdline + pid = subprocess.Popen(cmdline, close_fds=True).pid + +def load(): + return plugin_obby() -- cgit