Skip to main contentModule functions
Source - can_hibernate
- Checks if is authorized to do a system hibernate.
- can_restart
- Checks if is authorized to do a system restart.
- can_shutdown
- Checks if is authorized to do a system shutdown.
- can_suspend
- Checks if authorized to do a system suspend.
- hibernate
- Triggers a system hibernate.
- hostname
- Returns
- language
- Get the current language.
- languages
- Get a list of languages to present to the user.
- layout
- Get the current keyboard layout.
- layouts
- Get a list of keyboard layouts to present to the user.
- motd
- Get a system message that should be presented to the user.
e.g. “Welcome to Yoyodyne”
- os_id
- Get a word describing the OS, suitable for checking which OS the greeter is running on.
e.g. “ubuntu”
- os_name
- Get a line of text describing the OS without version information, suitable for presentation to the user.
e.g. “Ubuntu”
- os_pretty_name
- Get a line of text describing the OS, suitable for presentation to the user.
e.g. “Ubuntu 16.04.1 LTS”
- os_version
- Get a line of text describing the OS version, suitable for presentation to the user.
e.g. “16.04.1 LTS (Xenial Xapus)”
- os_version_id
- Get a word descibing the OS version, suitable for checking which version of the OS this greeter is running on.
e.g. “16.04”
- remote_sessions
- Get the available remote sessions.
- restart
- Triggers a system restart.
- sessions
- Get the available sessions.
- set_layout
- Set the layout for this session.
- shutdown
- Triggers a system shutdown.
- suspend
- Triggers a system suspend.