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=24,
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=' 20170516150528597655 ' ,
print_action=None,
print_action_args={ } ,
info_backend=' PLAIN ' ,
list_backend=' PLAIN ' ,
proxy_backend=' NX3 ' ,
proxy_options={ } ,
printing_backend=' FILE ' ,
client_rootdir=' /builddir/.x2goclient ' ,
sessions_rootdir=' /builddir/.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
|
|
|
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
|
|