Functions

  get_can_hibernate ()
  get_can_restart ()
  get_can_shutdown ()
  get_can_suspend ()
  get_hostname ()
  get_language ()
  get_languages ()
  get_layout ()
  get_layouts ()
  get_motd ()
  get_os_id ()
  get_os_name ()
  get_os_pretty_name ()
  get_os_version ()
  get_os_version_id ()
  get_remote_sessions ()
  get_sessions ()
  greeter_error_quark ()
  hibernate ()
  restart ()
  set_layout (layout)
  shutdown ()
  suspend ()

Details

LightDM.get_can_hibernate()
Returns:True if can hibernate the system
Return type:bool

Checks if is authorized to do a system hibernate.

LightDM.get_can_restart()
Returns:True if can restart the system
Return type:bool

Checks if is authorized to do a system restart.

LightDM.get_can_shutdown()
Returns:True if can shutdown the system
Return type:bool

Checks if is authorized to do a system shutdown.

LightDM.get_can_suspend()
Returns:True if can suspend the system
Return type:bool

Checks if authorized to do a system suspend.

LightDM.get_hostname()
Returns:The name of the host we are running on.
Return type:str
LightDM.get_language()
Returns:The current language or None if no language.
Return type:LightDM.Language

Get the current language.

LightDM.get_languages()
Returns:A list of LightDM.Language that should be presented to the user.
Return type:[LightDM.Language]

Get a list of languages to present to the user.

LightDM.get_layout()
Returns:The currently active layout for this user.
Return type:LightDM.Layout

Get the current keyboard layout.

LightDM.get_layouts()
Returns:A list of LightDM.Layout that should be presented to the user.
Return type:[LightDM.Layout]

Get a list of keyboard layouts to present to the user.

LightDM.get_motd()
Returns:a string (the contents of /etc/motd) or None if not set.
Return type:str or None

Get a system message that should be presented to the user. e.g. “Welcome to Yoyodyne”

LightDM.get_os_id()
Returns:a string (ID variable from /etc/os-release) or None if not set.
Return type:str or None

Get a word describing the OS, suitable for checking which OS the greeter is running on. e.g. “ubuntu”

LightDM.get_os_name()
Returns:a string (NAME variable from /etc/os-release) or None if not set.
Return type:str or None

Get a line of text describing the OS without version information, suitable for presentation to the user. e.g. “Ubuntu”

LightDM.get_os_pretty_name()
Returns:a string (PRETTY_NAME variable from /etc/os-release) or None if not set.
Return type:str or None

Get a line of text describing the OS, suitable for presentation to the user. e.g. “Ubuntu 16.04.1 LTS”

LightDM.get_os_version()
Returns:a string (VERSION variable from /etc/os-release) or None if not set.
Return type:str or None

Get a line of text describing the OS version, suitable for presentation to the user. e.g. “16.04.1 LTS (Xenial Xapus)”

LightDM.get_os_version_id()
Returns:a string (VERSION_ID variable from /etc/os-release) or None if not set.
Return type:str or None

Get a word descibing the OS version, suitable for checking which version of the OS this greeter is running on. e.g. “16.04”

LightDM.get_remote_sessions()
Returns:A list of LightDM.Session
Return type:[LightDM.Session]

Get the available remote sessions.

LightDM.get_sessions()
Returns:A list of LightDM.Session
Return type:[LightDM.Session]

Get the available sessions.

LightDM.greeter_error_quark()
Return type:int
LightDM.hibernate()
Raises:GLib.Error
Returns:True if hibernate initiated.
Return type:bool

Triggers a system hibernate.

LightDM.restart()
Raises:GLib.Error
Returns:True if restart initiated.
Return type:bool

Triggers a system restart.

LightDM.set_layout(layout)
Parameters:layout (LightDM.Layout) – The layout to use

Set the layout for this session.

LightDM.shutdown()
Raises:GLib.Error
Returns:True if shutdown initiated.
Return type:bool

Triggers a system shutdown.

LightDM.suspend()
Raises:GLib.Error
Returns:True if suspend initiated.
Return type:bool

Triggers a system suspend.