diff options
Diffstat (limited to 'plugins/xvncviewer.py.in')
-rw-r--r-- | plugins/xvncviewer.py.in | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/plugins/xvncviewer.py.in b/plugins/xvncviewer.py.in new file mode 100644 index 0000000..a6e614d --- /dev/null +++ b/plugins/xvncviewer.py.in @@ -0,0 +1,31 @@ +# -*- 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_xvncviewer: + def __init__(self): + self.service_type = ["_rfb._tcp"] + self.author = "Sebastien Estienne" + self.description = "Start a VNC connections with xvncviewer" + + def connect(self, use_host_names, name, stype, hostname, address, port, txts): + print "connecting using xvncviewer" + cmdline = ["@toolsdir@/exec_wrapper", "xvncviewer", "-xrm", "*passwordDialog:true", hostname ] + print cmdline + pid = subprocess.Popen(cmdline, close_fds=True).pid + +def load(): + return plugin_xvncviewer() |