Gdm.Client

g GObject.Object GObject.Object Gdm.Client Gdm.Client GObject.Object->Gdm.Client

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

error_quark ()

class

new ()

get_chooser (cancellable, callback, *user_data)

get_chooser_finish (result)

get_chooser_sync (cancellable)

get_enabled_extensions ()

get_greeter (cancellable, callback, *user_data)

get_greeter_finish (result)

get_greeter_sync (cancellable)

get_remote_greeter (cancellable, callback, *user_data)

get_remote_greeter_finish (result)

get_remote_greeter_sync (cancellable)

get_user_verifier (cancellable, callback, *user_data)

get_user_verifier_choice_list ()

get_user_verifier_custom_json ()

get_user_verifier_finish (result)

get_user_verifier_sync (cancellable)

open_reauthentication_channel (username, cancellable, callback, *user_data)

open_reauthentication_channel_finish (result)

open_reauthentication_channel_sync (username, cancellable)

set_enabled_extensions (extensions)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gdm.Client(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Gdm.ClientClass

classmethod error_quark()
Return type:

int

classmethod new()
Return type:

Gdm.Client

get_chooser(cancellable, callback, *user_data)
Parameters:

Gets a Gdm.Chooser object that can be used to verify a user’s local account.

get_chooser_finish(result)
Parameters:

result (Gio.AsyncResult) – The Gio.AsyncResult from the callback

Raises:

GLib.Error

Returns:

a Gdm.Chooser

Return type:

Gdm.Chooser

Finishes an operation started with Gdm.Client.get_chooser().

get_chooser_sync(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – a Gio.Cancellable

Raises:

GLib.Error

Returns:

Gdm.Chooser or None if caller is not a chooser

Return type:

Gdm.Chooser

Gets a Gdm.Chooser object that can be used to do do various XDMCP chooser related tasks, such as selecting a host or disconnecting.

get_enabled_extensions()
Returns:

a list of extensions

Return type:

[str]

Gets GDM’s enabled pam extensions. Currently, only org.gnome.DisplayManager.UserVerifier.ChoiceList and org.gnome.DisplayManager.UserVerifier.CustomJSON are supported.

get_greeter(cancellable, callback, *user_data)
Parameters:

Gets a Gdm.Greeter object that can be used to verify a user’s local account.

get_greeter_finish(result)
Parameters:

result (Gio.AsyncResult) – The Gio.AsyncResult from the callback

Raises:

GLib.Error

Returns:

a Gdm.Greeter

Return type:

Gdm.Greeter

Finishes an operation started with Gdm.Client.get_greeter().

get_greeter_sync(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – a Gio.Cancellable

Raises:

GLib.Error

Returns:

Gdm.Greeter or None if caller is not a greeter

Return type:

Gdm.Greeter

Gets a Gdm.Greeter object that can be used to do do various login screen related tasks, such as selecting a users session, and starting that session.

get_remote_greeter(cancellable, callback, *user_data)
Parameters:

Gets a Gdm.RemoteGreeter object that can be used to verify a user’s local account.

get_remote_greeter_finish(result)
Parameters:

result (Gio.AsyncResult) – The Gio.AsyncResult from the callback

Raises:

GLib.Error

Returns:

a Gdm.RemoteGreeter

Return type:

Gdm.RemoteGreeter

Finishes an operation started with Gdm.Client.get_remote_greeter().

get_remote_greeter_sync(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – a Gio.Cancellable

Raises:

GLib.Error

Returns:

Gdm.RemoteGreeter or None if caller is not remote

Return type:

Gdm.RemoteGreeter

Gets a Gdm.RemoteGreeter object that can be used to do do various remote login screen related tasks, such as disconnecting.

get_user_verifier(cancellable, callback, *user_data)
Parameters:

Gets a Gdm.UserVerifier object that can be used to verify a user’s local account.

get_user_verifier_choice_list()
Returns:

Gdm.UserVerifierChoiceList or None if user verifier isn’t yet fetched, or daemon doesn’t support choice lists

Return type:

Gdm.UserVerifierChoiceList

Gets a Gdm.UserVerifierChoiceList object that can be used to verify a user’s local account.

get_user_verifier_custom_json()
Returns:

Gdm.UserVerifierCustomJSON or None if user verifier isn’t yet fetched, or daemon doesn’t support the custom JSON protocol

Return type:

Gdm.UserVerifierCustomJSON

Gets a Gdm.UserVerifierCustomJSON object that can be used to verify a user’s local account.

get_user_verifier_finish(result)
Parameters:

result (Gio.AsyncResult) – The Gio.AsyncResult from the callback

Raises:

GLib.Error

Returns:

a Gdm.UserVerifier

Return type:

Gdm.UserVerifier

Finishes an operation started with Gdm.Client.get_user_verifier().

get_user_verifier_sync(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – a Gio.Cancellable

Raises:

GLib.Error

Returns:

Gdm.UserVerifier or None if not connected

Return type:

Gdm.UserVerifier

Gets a Gdm.UserVerifier object that can be used to verify a user’s local account.

open_reauthentication_channel(username, cancellable, callback, *user_data)
Parameters:

Gets a Gdm.UserVerifier object that can be used to reauthenticate an already logged in user.

open_reauthentication_channel_finish(result)
Parameters:

result (Gio.AsyncResult) – The Gio.AsyncResult from the callback

Raises:

GLib.Error

Returns:

a Gdm.UserVerifier

Return type:

Gdm.UserVerifier

Finishes an operation started with Gdm.Client.open_reauthentication_channel().

open_reauthentication_channel_sync(username, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

Gdm.UserVerifier or None if username is not already logged in.

Return type:

Gdm.UserVerifier

Gets a Gdm.UserVerifier object that can be used to reauthenticate an already logged in user. Free with GObject.Object.unref to close reauthentication channel.

set_enabled_extensions(extensions)
Parameters:

extensions ([str]) – a list of extensions

Enables GDM’s pam extensions. Currently, only org.gnome.DisplayManager.UserVerifier.ChoiceList and org.gnome.DisplayManager.UserVerifier.CustomJSON are supported.