x2go.backends.proxy.nx3 module

X2GoProxy class - proxying your graphical connection through NX3.

class x2go.backends.proxy.nx3.X2GoProxy(*args, **kwargs)[source]

Bases: X2GoProxy

This x2go.backends.proxy.nx3.X2GoProxy class is a NX version 3 based X2Go proxy connection class.

It basically fills x2go.backends.proxy.base.X2GoProxy variables with sensible content. Its methods mostly wrap around the corresponding methods of the parent class.

process_proxy_options()[source]

Override this method to incorporate elements from proxy_options into actual proxy subprocess execution.

This method (if overridden) should (by design) never fail nor raise an exception. Make sure to catch all possible errors appropriately.

If you want to log ignored proxy_options then

  1. remove processed proxy_options from self.proxy_options

  2. once you have finished processing the proxy_options call the parent class method x2go.backends.proxy.base.X2GoProxy.process_proxy_options()

start_proxy()[source]

Start the thread runner and wait for the proxy to come up.

Returns:

a subprocess instance that knows about the externally started proxy command.

Return type:

obj