LightDM.User

g GObject.Object GObject.Object LightDM.User LightDM.User GObject.Object->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_is_locked ()

get_language ()

get_layout ()

get_layouts ()

get_logged_in ()

get_name ()

get_real_name ()

get_session ()

get_uid ()

Virtual Methods

Inherited:

GObject.Object (7)

do_changed ()

Properties

Name

Type

Flags

Short Description

background

str

r

User background

display-name

str

r

Users display name

has-messages

bool

r

True if the user is has waiting messages

home-directory

str

r

Home directory

image

str

r

Avatar image

is-locked

bool

r

True if the user is currently locked

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

True if 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 ::changed signal gets emitted this user account is modified.

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class LightDM.User(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

LightDM.UserClass

LightDM.User is 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 None if no path

Return type:

str or 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:

True if 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 None if no URI

Return type:

str or None

Get the image URI for a user.

get_is_locked()
Returns:

True if the user is locked

Return type:

bool

Get if the user is locked.

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:

str or None

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:

str or 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:

True if the user is currently logged in.

Return type:

bool

Check if a user is logged in.

get_name()
Returns:

The name of the given user

Return type:

str

Get the name of a user.

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 None if using system defaults.

Return type:

str or None

Get the session for a user.

get_uid()
Returns:

The uid of the given user

Return type:

int

Get the uid of 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 ::changed signal 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

True if 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.image
Name:

image

Type:

str

Default Value:

None

Flags:

READABLE

Avatar image

LightDM.User.props.is_locked
Name:

is-locked

Type:

bool

Default Value:

False

Flags:

READABLE

True if the user is currently locked

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

True if the user is currently in a session

LightDM.User.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE

Username

LightDM.User.props.real_name
Name:

real-name

Type:

str

Default Value:

None

Flags:

READABLE

Users real name

LightDM.User.props.session
Name:

session

Type:

str

Default Value:

None

Flags:

READABLE

Session used by this user

LightDM.User.props.uid
Name:

uid

Type:

int

Default Value:

0

Flags:

READABLE

User UID