LightDMSession

LightDMSession — Choose the session to use

Functions

Properties

gchar * comment Read
gchar * key Read
gchar * name Read

Object Hierarchy

    GObject
    ╰── LightDMSession

Includes

#include <lightdm.h>

Description

Object containing information about a session type. LightDMSession objects are not created by the user, but provided by the LightDMGreeter object.

Functions

lightdm_get_sessions ()

GList *
lightdm_get_sessions (void);

Get the available sessions.

Returns

A list of LightDMSession.

[element-type LightDMSession][transfer none]


lightdm_get_remote_sessions ()

GList *
lightdm_get_remote_sessions (void);

Get the available remote sessions.

Returns

A list of LightDMSession.

[element-type LightDMSession][transfer none]


lightdm_session_get_key ()

const gchar *
lightdm_session_get_key (LightDMSession *session);

Get the key for a session

Parameters

session

A LightDMSession

 

Returns

The session key


lightdm_session_get_session_type ()

const gchar *
lightdm_session_get_session_type (LightDMSession *session);

Get the type a session

Parameters

session

A LightDMSession

 

Returns

The session type, e.g. x or mir


lightdm_session_get_name ()

const gchar *
lightdm_session_get_name (LightDMSession *session);

Get the name for a session

Parameters

session

A LightDMSession

 

Returns

The session name


lightdm_session_get_comment ()

const gchar *
lightdm_session_get_comment (LightDMSession *session);

Get the comment for a session

Parameters

session

A LightDMSession

 

Returns

The session comment

Types and Values

Property Details

The “comment” property

  “comment”                  gchar *

Session comment.

Flags: Read

Default value: NULL


The “key” property

  “key”                      gchar *

Session key.

Flags: Read

Default value: NULL


The “name” property

  “name”                     gchar *

Session name.

Flags: Read

Default value: NULL