Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- LightDM.get_can_hibernate()¶
-
Checks if is authorized to do a system hibernate.
- LightDM.get_can_restart()¶
-
Checks if is authorized to do a system restart.
- LightDM.get_can_shutdown()¶
-
Checks if is authorized to do a system shutdown.
- LightDM.get_can_suspend()¶
-
Checks if authorized to do a system suspend.
- LightDM.get_language()¶
- Returns:
The current language or
None
if no language.- Return type:
Get the current language.
- LightDM.get_languages()¶
- Returns:
A list of
LightDM.Language
that should be presented to the user.- Return type:
Get a list of languages to present to the user.
- LightDM.get_layout()¶
- Returns:
The currently active layout for this user.
- Return type:
Get the current keyboard layout.
- LightDM.get_layouts()¶
- Returns:
A list of
LightDM.Layout
that should be presented to the user.- Return type:
Get a list of keyboard layouts to present to the user.
- LightDM.get_motd()¶
-
Get a system message that should be presented to the user. e.g. “Welcome to Yoyodyne”
- LightDM.get_os_id()¶
-
Get a word describing the OS, suitable for checking which OS the greeter is running on. e.g. “ubuntu”
- LightDM.get_os_name()¶
-
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:
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:
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:
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:
Get the available remote sessions.
- LightDM.get_sessions()¶
- Returns:
A list of
LightDM.Session
- Return type:
Get the available sessions.
- LightDM.hibernate()¶
- Raises:
- Returns:
True
if hibernate initiated.- Return type:
Triggers a system hibernate.
- LightDM.restart()¶
- Raises:
- Returns:
True
if restart initiated.- Return type:
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:
- Returns:
True
if shutdown initiated.- Return type:
Triggers a system shutdown.