Class for managing X2Go terminal sessions on a remote X2Go server via
Paramiko/SSH.
The terminal session instance works closely together (i.e. depends on)
a connected control session instance (e.g. X2GoControlSessionSTDOUT). You never should use either
of them as a standalone instance. Both, control session and terminal
session(s) get managed/controlled via X2GoSession
instances.
|
|
__init__(self,
control_session,
session_info=None,
geometry='800x600',
depth=24,
link='adsl',
pack='16m-jpeg-9',
dpi='',
cache_type='unix-kde',
kbtype='null/null',
kblayout='null',
kbvariant='null',
session_type='application',
snd_system='pulse',
snd_port=4713,
cmd=None,
published_applications=False,
set_session_title=False,
session_title='',
applications=[],
rdp_server=None,
rdp_options=None,
xdmcp_server=None,
convert_encoding=False,
server_encoding='UTF-8',
client_encoding='UTF-8',
rootdir=None,
profile_name='UNKNOWN',
profile_id='20131022211001564913',
print_action=None,
print_action_args={},
info_backend=<class 'x2go.backends.info._stdout.X2GoServerSessionInfoSTDOUT'>,
list_backend=<class 'x2go.backends.info._stdout.X2GoServerSessionListSTDOUT'>,
proxy_backend=<class 'x2go.backends.proxy._nx3.X2GoProxyNX3'>,
proxy_options={},
printing_backend=<class 'x2go.backends.printing._file.X2GoClientPrintingFILE'>,
client_rootdir='/home/buildd/.x2goclient',
sessions_rootdir='/home/buildd/.x2go',
session_instance=None,
logger=None,
loglevel=56)
Initialize an X2Go session. |
source code
|
|
|
|
__del__(self)
Tidy up if terminal session gets destructed. |
source code
|
|
str
|
|
X2GoServerSessionInfo*
|
|
str
|
|
str
|
|
|
|
|
|
|
start_sshfs(self)
Initialize Paramiko/SSH reverse forwarding tunnel for X2Go folder
sharing. |
source code
|
|
|
|
stop_sound(self)
Shutdown (pause) Paramiko/SSH reverse forwarding tunnel for X2Go
sound. |
source code
|
|
|
|
stop_sshfs(self)
Shutdown (pause) Paramiko/SSH reverse forwarding tunnel for X2Go
folder sharing. |
source code
|
|
|
|
|
|
|
|
|
|
stop_printing(self)
Shutdown (pause) the X2Go Print Queue thread. |
source code
|
|
str
|
|
|
|
|
|
|
|
|
|
stop_mimebox(self)
Shutdown (pause) the X2Go MIME box Queue thread. |
source code
|
|
str
|
|
bool
|
|
|
|
session_info_protect(self)
Protect this terminal session's info object against updates. |
source code
|
|
|
|
session_info_unprotect(self)
Allow session info updates from within the list_sessions method of
the control session. |
source code
|
|
bool
|
|
bool
|
|
bool
|
|
int
|
|
|
|
|
|
|
|
|
|
|
|
|
raise_session_window(self,
timeout=60)
Try for <timeout> seconds to raise the X2Go session window of
this terminal session to the top and bring it to focus. |
source code
|
|
bool
|
has_command(self,
cmd)
,,Guess'' if the command <cmd> exists on the X2Go
server and is executable. |
source code
|
|
tuple of str
|
|
bool
|
|
bool
|
|
bool
|
set_keyboard(self,
layout='null',
variant='null')
Set the keyboard layout and variant for this (running) session. |
source code
|
|
|
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
bool
|
|
|
|
|
|
|
post_terminate_cleanup(self)
Do some cleanup after this session has terminated. |
source code
|
|
bool
|
|
bool
|
|
bool
|
|
|
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|