LightDM.User¶
| Subclasses: | None | 
|---|
Methods¶
| Inherited: | GObject.Object (37) | 
|---|---|
| Structs: | GObject.ObjectClass (5) | 
| get_background() | |
| get_display_name() | |
| get_has_messages() | |
| get_home_directory() | |
| get_image() | |
| get_language() | |
| get_layout() | |
| get_layouts() | |
| get_logged_in() | |
| get_name() | |
| get_real_name() | |
| get_session() | |
| get_uid() | 
Properties¶
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| background | str | r | User background | 
| display-name | str | r | Users display name | 
| has-messages | bool | r | Trueif the user is has waiting messages | 
| home-directory | str | r | Home directory | 
| image | str | r | Avatar image | 
| language | str | r | Language used by this user | 
| layout | str | r | Keyboard layout used by this user | 
| layouts | [ str] | r | Keyboard layouts used by this user | 
| logged-in | bool | r | Trueif the user is currently in a session | 
| name | str | r | Username | 
| real-name | str | r | Users real name | 
| session | str | r | Session used by this user | 
| uid | int | r | User UID | 
Signals¶
| Inherited: | GObject.Object (1) | 
|---|
| Name | Short Description | 
|---|---|
| changed | The ::changedsignal gets emitted this user account is modified. | 
Class Details¶
- 
class LightDM.User(**kwargs)¶
- Bases: - GObject.Object- Abstract: - No - Structure: - LightDM.UserClass- LightDM.Useris an opaque data structure and can only be accessed using the provided functions.- 
get_background()¶
- Returns: - The background file path for the given user or - Noneif no path- Return type: - stror- None- Get the background file path for a user. 
 - 
get_display_name()¶
- Returns: - The display name of the given user - Return type: - str- Get the display name of a user. 
 - 
get_has_messages()¶
- Returns: - Trueif the user has waiting messages.- Return type: - bool- Check if a user has waiting messages. 
 - 
get_home_directory()¶
- Returns: - The users home directory - Return type: - str- Get the home directory for a user. 
 - 
get_image()¶
- Returns: - The image URI for the given user or - Noneif no URI- Return type: - stror- None- Get the image URI for a user. 
 - 
get_language()¶
- Returns: - The language in the form of a local specification (e.g. “de_DE.UTF-8”) for the given user or - Noneif using the system default locale.- Return type: - stror- None- Get the language for a user. 
 - 
get_layout()¶
- Returns: - The keyboard layout for the given user or - Noneif using system defaults. Copy the value if you want to use it long term.- Return type: - stror- None- Get the keyboard layout for a user. 
 - 
get_layouts()¶
- Returns: - A - None-terminated array of keyboard layouts for the given user. Copy the values if you want to use them long term.- Return type: - [ - str]- Get the configured keyboard layouts for a user. 
 - 
get_logged_in()¶
- Returns: - Trueif the user is currently logged in.- Return type: - bool- Check if a user is logged in. 
 - 
get_real_name()¶
- Returns: - The real name of the given user - Return type: - str- Get the real name of a user. 
 - 
get_session()¶
- Returns: - The session for the given user or - Noneif using system defaults.- Return type: - stror- None- Get the session for a user. 
 - 
do_changed() virtual¶
 
- 
Signal Details¶
- 
LightDM.User.signals.changed(user)¶
- Signal Name: - changed- Flags: - RUN_LAST- Parameters: - user ( - LightDM.User) – The object which received the signal- The - ::changedsignal gets emitted this user account is modified.
Property Details¶
- 
LightDM.User.props.background¶
- Name: - background- Type: - str- Default Value: - None- Flags: - READABLE- User background 
- 
LightDM.User.props.display_name¶
- Name: - display-name- Type: - str- Default Value: - None- Flags: - READABLE- Users display name 
- 
LightDM.User.props.has_messages¶
- Name: - has-messages- Type: - bool- Default Value: - False- Flags: - READABLE- Trueif the user is has waiting messages
- 
LightDM.User.props.home_directory¶
- Name: - home-directory- Type: - str- Default Value: - None- Flags: - READABLE- Home directory 
- 
LightDM.User.props.language¶
- Name: - language- Type: - str- Default Value: - None- Flags: - READABLE- Language used by this user 
- 
LightDM.User.props.layout¶
- Name: - layout- Type: - str- Default Value: - None- Flags: - READABLE- Keyboard layout used by this user 
- 
LightDM.User.props.layouts¶
- Name: - layouts- Type: - [ - str]- Default Value: - []- Flags: - READABLE- Keyboard layouts used by this user 
- 
LightDM.User.props.logged_in¶
- Name: - logged-in- Type: - bool- Default Value: - False- Flags: - READABLE- Trueif the user is currently in a session
- 
LightDM.User.props.real_name¶
- Name: - real-name- Type: - str- Default Value: - None- Flags: - READABLE- Users real name