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. x2go.backends.control.plain.X2GoControlSession). 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=_local_color_depth,
link="adsl",
pack="16m-jpeg-9",
dpi='',
cache_type="unix-kde",
kbtype='null/null',
kblayout='null',
kbvariant='null',
clipboard='both',
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=utils._genSessionProfileId(),
print_action=None,
print_action_args={},
info_backend=_BACKENDS ['X2GoServerSessionInfo'] ['default'],
list_backend=_BACKENDS ['X2GoServerSessionList'] ['default'],
proxy_backend=_BACKENDS ['X2GoProxy'] ['default'],
proxy_options={},
printing_backend=_BACKENDS ['X2GoClientPrinting'] ['default'],
client_rootdir=os.path.join(_LOCAL_HOME,_X2GO_CLIENT_ROOTDIR),
sessions_rootdir=os.path.join(_LOCAL_HOME,_X2GO_SESSIONS_ROOTDIR),
session_instance=None,
logger=None,
loglevel=log.loglevel_DEFAULT)
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
|
|
|
start_telekinesis(self)
Initialize Telekinesis client for X2Go. |
source code
|
|
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__
|