LightDM.User¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
User background |
||
r |
Users display name |
||
r |
|
||
r |
Home directory |
||
r |
Avatar image |
||
r |
|
||
r |
Language used by this user |
||
r |
Keyboard layout used by this user |
||
[ |
r |
Keyboard layouts used by this user |
|
r |
|
||
r |
Username |
||
r |
Users real name |
||
r |
Session used by this user |
||
r |
User UID |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class LightDM.User(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
LightDM.User
is an opaque data structure and can only be accessed using the provided functions.- get_background()¶
-
Get the background file path for a user.
- get_display_name()¶
- Returns:
The display name of the given user
- Return type:
Get the display name of a user.
- get_has_messages()¶
-
Check if a user has waiting messages.
- get_home_directory()¶
- Returns:
The users home directory
- Return type:
Get the home directory for a user.
- get_image()¶
-
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
None
if using the system default locale.- Return type:
Get the language for a user.
- get_layout()¶
- Returns:
The keyboard layout for the given user or
None
if using system defaults. Copy the value if you want to use it long term.- Return type:
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()¶
-
Check if a user is logged in.
- get_real_name()¶
- Returns:
The real name of the given user
- Return type:
Get the real name of a user.
- get_session()¶
-
Get the session for a user.
- do_changed() virtual¶
Signal Details¶
- LightDM.User.signals.changed(user)¶
- Signal Name:
changed
- Flags:
- Parameters:
user (
LightDM.User
) – The object which received the signal
The
::changed
signal gets emitted this user account is modified.
Property Details¶
- LightDM.User.props.background¶
-
User background
- LightDM.User.props.display_name¶
-
Users display name
- LightDM.User.props.home_directory¶
-
Home directory
- LightDM.User.props.language¶
-
Language used by this user
- LightDM.User.props.layout¶
-
Keyboard layout used by this user
- LightDM.User.props.layouts¶
-
Keyboard layouts used by this user
- LightDM.User.props.real_name¶
-
Users real name
- LightDM.User.props.session¶
-
Session used by this user