Top | ![]() |
![]() |
![]() |
![]() |
void (*show_message) (LightDMGreeter *greeter
,const gchar *text
,LightDMMessageType type
);
void (*show_prompt) (LightDMGreeter *greeter
,const gchar *text
,LightDMPromptType type
);
gboolean lightdm_greeter_connect_sync (LightDMGreeter *greeter
,GError **error
);
Connects the greeter to the display manager. Will block until connected.
gchar * lightdm_greeter_ensure_shared_data_dir_sync (LightDMGreeter *greeter
,const gchar *username
);
Ensure that a shared data dir for the given user is available. Both the
greeter user and username
will have write access to that folder. The
intention is that larger pieces of shared data would be stored there (files
that the greeter creates but wants to give to a user -- like camera
photos -- or files that the user creates but wants the greeter to
see -- like contact avatars).
LightDM will automatically create these if the user actually logs in, so greeters only need to call this method if they want to store something in the directory themselves.
const gchar *
lightdm_greeter_get_default_session_hint
(LightDMGreeter *greeter
);
Get the default session to use.
const gchar * lightdm_greeter_get_hint (LightDMGreeter *greeter
,const gchar *name
);
Get a hint.
gboolean
lightdm_greeter_get_lock_hint (LightDMGreeter *greeter
);
Check if the greeter is acting as a lock screen.
gboolean
lightdm_greeter_get_has_guest_account_hint
(LightDMGreeter *greeter
);
Check if guest sessions are supported.
gboolean
lightdm_greeter_get_hide_users_hint (LightDMGreeter *greeter
);
Check if user accounts should be shown. If this is TRUE then the list of accounts should be taken from LightDMUserList and displayed in the greeter for the user to choose from. Note that this list can be empty and it is recommended you show a method for the user to enter a username manually.
If this option is shown the greeter should only allow these users to be chosen for login unless the manual login hint is set.
gboolean
lightdm_greeter_get_show_manual_login_hint
(LightDMGreeter *greeter
);
Check if a manual login option should be shown. If set the GUI should provide a way for a username to be entered manually. Without this hint a greeter which is showing a user list can limit logins to only those users.
gboolean
lightdm_greeter_get_show_remote_login_hint
(LightDMGreeter *greeter
);
Check if a remote login option should be shown. If set the GUI should provide a way for a user to log into a remote desktop server.
const gchar *
lightdm_greeter_get_select_user_hint (LightDMGreeter *greeter
);
Get the user to select by default.
gboolean
lightdm_greeter_get_select_guest_hint (LightDMGreeter *greeter
);
Check if the guest account should be selected by default.
const gchar *
lightdm_greeter_get_autologin_user_hint
(LightDMGreeter *greeter
);
Get the user account to automatically logg into when the timer expires.
gboolean
lightdm_greeter_get_autologin_guest_hint
(LightDMGreeter *greeter
);
Check if the guest account should be automatically logged into when the timer expires.
gint
lightdm_greeter_get_autologin_timeout_hint
(LightDMGreeter *greeter
);
Get the number of seconds to wait before automaitcally logging in.
void lightdm_greeter_set_language (LightDMGreeter *greeter
,const gchar *language
);
Set the language for the currently authenticated user.
void
lightdm_greeter_cancel_autologin (LightDMGreeter *greeter
);
Cancel the automatic login.
void lightdm_greeter_authenticate (LightDMGreeter *greeter
,const gchar *username
);
Starts the authentication procedure for a user.
greeter |
A LightDMGreeter |
|
username |
A username or NULL to prompt for a username. |
[allow-none] |
void
lightdm_greeter_authenticate_as_guest (LightDMGreeter *greeter
);
Starts the authentication procedure for the guest user.
void
lightdm_greeter_authenticate_autologin
(LightDMGreeter *greeter
);
Starts the authentication procedure for the automatic login user.
void lightdm_greeter_authenticate_remote (LightDMGreeter *greeter
,const gchar *session
,const gchar *username
);
Start authentication for a remote session type.
greeter |
A LightDMGreeter |
|
session |
The name of a remote session |
|
username |
A username of NULL to prompt for a username. |
[allow-none] |
void lightdm_greeter_respond (LightDMGreeter *greeter
,const gchar *response
);
Provide response to a prompt. May be one in a series.
void
lightdm_greeter_cancel_authentication (LightDMGreeter *greeter
);
Cancel the current user authentication.
gboolean
lightdm_greeter_get_in_authentication (LightDMGreeter *greeter
);
Checks if the greeter is in the process of authenticating.
gboolean
lightdm_greeter_get_is_authenticated (LightDMGreeter *greeter
);
Checks if the greeter has successfully authenticated.
const gchar *
lightdm_greeter_get_authentication_user
(LightDMGreeter *greeter
);
Get the user that is being authenticated.
gboolean lightdm_greeter_start_session_sync (LightDMGreeter *greeter
,const gchar *session
,GError **error
);
Start a session for the authenticated user.
greeter |
A LightDMGreeter |
|
session |
The session to log into or NULL to use the default. |
[allow-none] |
error |
return location for a GError, or |