Package x2go :: Module defaults
[frames] | no frames]

Module defaults

source code

Default variables and values for Python X2Go.

Classes
  OSNotSupportedException
Variables
  __NAME__ = 'x2godefaults-pylib'
  X2GOCLIENT_OS = platform.system()
  X_DISPLAY = None
  LOCAL_HOME = os.path.normpath(os.path.expanduser('~'))
  X2GO_SESSIONS_ROOTDIR = '.x2go'
  X2GO_CLIENT_ROOTDIR = '.x2goclient'
  ROOT_DIR = '/'
  ETC_DIR = os.path.join(ROOT_DIR, 'etc', 'x2goclient')
  CURRENT_LOCAL_USER = getpass.getuser()
  X2GO_SSH_ROOTDIR = '.ssh'
  SUPPORTED_SOUND = True
  SUPPORTED_PRINTING = True
  SUPPORTED_FOLDERSHARING = True
  SUPPORTED_MIMEBOX = True
  BACKENDS_CONTROLSESSION = {'STDOUT': 'X2GoControlSessionSTDOUT',}
  BACKENDS_TERMINALSESSION = {'STDOUT': 'X2GoTerminalSessionSTDO...
  BACKENDS_SERVERSESSIONINFO = {'STDOUT': 'X2GoServerSessionInfo...
  BACKENDS_SERVERSESSIONLIST = {'STDOUT': 'X2GoServerSessionList...
  BACKENDS_PROXY = {'NX3': 'X2GoProxyNX3',}
  BACKEND_CONTROLSESSION_DEFAULT = 'X2GoControlSessionSTDOUT'
  BACKEND_TERMINALSESSION_DEFAULT = 'X2GoTerminalSessionSTDOUT'
  BACKEND_SERVERSESSIONINFO_DEFAULT = 'X2GoServerSessionInfoSTDOUT'
  BACKEND_SERVERSESSIONLIST_DEFAULT = 'X2GoServerSessionListSTDOUT'
  BACKEND_PROXY_DEFAULT = 'X2GoProxyNX3'
  BACKENDS_SESSIONPROFILES = {'FILE': 'X2GoSessionProfilesFILE',...
Python X2Go backends for storing session profiles.
  BACKENDS_CLIENTSETTINGS = {'FILE': 'X2GoClientSettingsFILE', '...
Python X2Go backends for storing client settings.
  BACKENDS_CLIENTPRINTING = {'FILE': 'X2GoClientPrintingFILE', '...
Python X2Go backends for storing print settings.
  BACKEND_SESSIONPROFILES_DEFAULT = 'X2GoSessionProfilesFILE'
  BACKEND_CLIENTSETTINGS_DEFAULT = 'X2GoClientSettingsFILE'
  BACKEND_CLIENTPRINTING_DEFAULT = 'X2GoClientPrintingFILE'
  X2GO_SETTINGS_FILENAME = 'settings'
  X2GO_SETTINGS_CONFIGFILES = [os.path.normpath(os.path.join(LOC...
  X2GO_PRINTING_FILENAME = 'printing'
  X2GO_PRINTING_CONFIGFILES = [os.path.normpath(os.path.join(LOC...
  X2GO_SESSIONPROFILES_FILENAME = 'sessions'
  X2GO_SESSIONPROFILES_CONFIGFILES = [os.path.normpath(os.path.j...
  X2GO_XCONFIG_FILENAME = 'xconfig'
  X2GO_XCONFIG_CONFIGFILES = [os.path.normpath(os.path.join(LOCA...
  X2GO_CLIENTSETTINGS_DEFAULTS = {'LDAP': {'useldap': False, 'po...
  X2GO_CLIENTPRINTING_DEFAULTS = {'General': {'showdialog': Fals...
  X2GO_CLIENTXCONFIG_DEFAULTS = {}
  X2GO_GENERIC_APPLICATIONS = ['WWWBROWSER', 'MAILCLIENT', 'OFFI...
X2Go's generic applications.
  X2GO_SESSIONPROFILE_DEFAULTS = {'autologin': True, 'autoconnec...
X2GoSessionProfiles default values to fill a new session profile with.
  pack_methods_nx3_noqual = ['nopack', '8', '64', '256', '512', ...
Available NX3 compression methods.
  pack_methods_nx3_formatted = ...
  pack_methods_nx3 = [m for m in pack_methods_nx3_noqual if "%" ...
  X2GO_DESKTOPSESSIONS = {'CINNAMON': 'cinnamon', 'KDE': 'startk...
A dictionary with meta-commands for X2Go's window manager sessions.
  RSAKEY_STRENGTH = 1024
  RSAHostKey = paramiko.RSAKey.generate(RSAKEY_STRENGTH)
An RSA host key for this client session.
  X2GO_PRINT_ACTIONS = {'PDFVIEW': 'X2GoPrintActionPDFVIEW', 'PD...
Relating print action names and classes.
  DEFAULT_PDFVIEW_CMD = 'xdg-open'
Default PDF viewer command for Linux systems (PDFVIEW print action).
  DEFAULT_PDFSAVE_LOCATION = 'PDF'
Default location for saving PDF files (PDFSAVE print action).
  DEFAULT_PRINTCMD_CMD = 'lpr'
Default command for the PRINTCMD print action.
  X2GO_MIMEBOX_ACTIONS = {'OPEN': 'X2GoMIMEboxActionOPEN', 'OPEN...
Relating MIME box action names and classes.
  X2GO_MIMEBOX_EXTENSIONS_BLACKLIST = ['LOCK', 'SYS', 'SWP', 'EX...
Black-listed MIME box file extenstions.
  X2GO_SHARE_VIEWONLY = 0
Constant representing read-only access to shared desktops.
  X2GO_SHARE_FULLACCESS = 1
Constant representing read-write (full) access to shared desktops.
  PUBAPP_MAX_NO_SUBMENUS = 10
Less than ten applications will not get rendered into submenus.
Variables Details

BACKENDS_TERMINALSESSION

Value:
{'STDOUT': 'X2GoTerminalSessionSTDOUT',}

BACKENDS_SERVERSESSIONINFO

Value:
{'STDOUT': 'X2GoServerSessionInfoSTDOUT',}

BACKENDS_SERVERSESSIONLIST

Value:
{'STDOUT': 'X2GoServerSessionListSTDOUT',}

BACKENDS_SESSIONPROFILES

Python X2Go backends for storing session profiles.

Value:
{'FILE': 'X2GoSessionProfilesFILE', 'GCONF': 'X2GoSessionProfilesGCONF\
', 'HTTPSBROKER': 'X2GoSessionProfilesHTTPSBROKER', 'WINREG': 'X2GoSes\
sionProfilesWINREG',}

BACKENDS_CLIENTSETTINGS

Python X2Go backends for storing client settings.

Value:
{'FILE': 'X2GoClientSettingsFILE', 'GCONF': 'X2GoClientSettingsGCONF',\
 'HTTPSBROKER': 'X2GoClientSettingsHTTPSBROKER', 'WINREG': 'X2GoClient\
SettingsWINREG',}

BACKENDS_CLIENTPRINTING

Python X2Go backends for storing print settings.

Value:
{'FILE': 'X2GoClientPrintingFILE', 'GCONF': 'X2GoClientPrintingGCONF',\
 'HTTPSBROKER': 'X2GoClientPrintingHTTPSBROKER', 'WINREG': 'X2GoClient\
PrintingWINREG',}

X2GO_SETTINGS_CONFIGFILES

Value:
[os.path.normpath(os.path.join(LOCAL_HOME, X2GO_CLIENT_ROOTDIR, 'setti\
ngs')), os.path.normpath(os.path.join(ETC_DIR, X2GO_SETTINGS_FILENAME)\
),]

X2GO_PRINTING_CONFIGFILES

Value:
[os.path.normpath(os.path.join(LOCAL_HOME, X2GO_CLIENT_ROOTDIR, 'print\
ing')), os.path.normpath(os.path.join(ETC_DIR, X2GO_PRINTING_FILENAME)\
),]

X2GO_SESSIONPROFILES_CONFIGFILES

Value:
[os.path.normpath(os.path.join(LOCAL_HOME, X2GO_CLIENT_ROOTDIR, 'sessi\
ons')), os.path.normpath(os.path.join(ETC_DIR, X2GO_SESSIONPROFILES_FI\
LENAME)),]

X2GO_XCONFIG_CONFIGFILES

Value:
[os.path.normpath(os.path.join(LOCAL_HOME, X2GO_CLIENT_ROOTDIR, 'xconf\
ig')), os.path.normpath(os.path.join(ETC_DIR, X2GO_XCONFIG_FILENAME)),\
]

X2GO_CLIENTSETTINGS_DEFAULTS

Value:
{'LDAP': {'useldap': False, 'port': 389, 'server': 'localhost', 'port1\
': 0, 'port2': 0,}, 'General': {'clientport': 22, 'autoresume': True,}\
, 'Authorization': {'newprofile': True, 'suspend': True, 'editprofile'\
: True, 'resume': True}, 'trayicon': {'enabled': True, 'mintotray': Tr\
ue, 'noclose': True, 'mincon': True, 'maxdiscon': True,},}

X2GO_CLIENTPRINTING_DEFAULTS

Value:
{'General': {'showdialog': False, 'pdfview': True,}, 'print': {'startc\
md': False, 'command': 'lpr', 'stdin': False, 'ps': False,}, 'save': {\
'folder': 'PDF',}, 'view': {'open': True, 'command': 'xpdf',}, 'CUPS':\
 {'defaultprinter': 'PDF',},}

X2GO_GENERIC_APPLICATIONS

X2Go's generic applications.

Value:
['WWWBROWSER', 'MAILCLIENT', 'OFFICE', 'TERMINAL',]

X2GO_SESSIONPROFILE_DEFAULTS

X2GoSessionProfiles default values to fill a new session profile with.

Value:
{'autologin': True, 'autoconnect': False, 'autostart': False, 'setsess\
iontitle': False, 'sessiontitle': "", 'speed': 2, 'pack': '16m-jpeg', \
'quality': 9, 'iconvto': 'UTF-8', 'iconvfrom': 'UTF-8', 'useiconv': Fa\
lse, 'usesshproxy': False, 'sshproxyhost': 'proxyhost.mydomain', 'sshp\
roxyport': 22, 'sshproxyuser': '', 'sshproxykeyfile': '', 'sshproxytyp\
e': 'SSH', 'sshproxysameuser': False, 'sshproxysamepass': False, 'sshp\
roxyautologin': True, 'uniquehostkeyaliases': False, 'useexports': Tru\
e, 'restoreexports': False, 'fstunnel': True, 'export': '', 'usemimebo\
...

pack_methods_nx3_noqual

Available NX3 compression methods.

Value:
['nopack', '8', '64', '256', '512', '4k', '32k', '64k', '256k', '2m', \
'16m', '256-rdp', '256-rdp-compressed', '32k-rdp', '32k-rdp-compressed\
', '64k-rdp', '64k-rdp-compressed', '16m-rdp', '16m-rdp-compressed', '\
rfb-hextile', 'rfb-tight', 'rfb-tight-compressed', '8-tight', '64-tigh\
t', '256-tight', '512-tight', '4k-tight', '32k-tight', '64k-tight', '2\
56k-tight', '2m-tight', '16m-tight', '8-jpeg-%', '64-jpeg', '256-jpeg'\
, '512-jpeg', '4k-jpeg', '32k-jpeg', '64k-jpeg', '256k-jpeg', '2m-jpeg\
', '16m-jpeg-%', '8-png-jpeg-%', '64-png-jpeg', '256-png-jpeg', '512-p\
...

pack_methods_nx3_formatted

Value:
"""
    \'%s\'
    \'%s\'
    \'%s\'
    \'%s\'
    \'%s\'
    \'%s\'
    \'%s\'
...

pack_methods_nx3

Value:
[m for m in pack_methods_nx3_noqual if "%" not in m]

X2GO_DESKTOPSESSIONS

A dictionary with meta-commands for X2Go's window manager sessions.

Value:
{'CINNAMON': 'cinnamon', 'KDE': 'startkde', 'GNOME': 'gnome-session', \
'XFCE': 'xfce4-session', 'LXDE': 'startlxde', 'TRINITY': 'starttrinity\
', 'UNITY': 'unity',}

RSAHostKey

An RSA host key for this client session. Python X2Go does not use the system's host key but generates its own host key for each running application instance.

Value:
paramiko.RSAKey.generate(RSAKEY_STRENGTH)

X2GO_PRINT_ACTIONS

Relating print action names and classes.

Value:
{'PDFVIEW': 'X2GoPrintActionPDFVIEW', 'PDFSAVE': 'X2GoPrintActionPDFSA\
VE', 'PRINT': 'X2GoPrintActionPRINT', 'PRINTCMD': 'X2GoPrintActionPRIN\
TCMD', 'DIALOG': 'X2GoPrintActionDIALOG',}

X2GO_MIMEBOX_ACTIONS

Relating MIME box action names and classes.

Value:
{'OPEN': 'X2GoMIMEboxActionOPEN', 'OPENWITH': 'X2GoMIMEboxActionOPENWI\
TH', 'SAVEAS': 'X2GoMIMEboxActionSAVEAS',}

X2GO_MIMEBOX_EXTENSIONS_BLACKLIST

Black-listed MIME box file extenstions.

Value:
['LOCK', 'SYS', 'SWP', 'EXE', 'COM', 'CMD', 'PS1', 'PS2', 'BAT', 'JS',\
 'PY', 'PL', 'SH',]