You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

315 lines
8.1 KiB

3 years ago
.TH "web-greeter" "1" "2022.2.10"
.nh
.ad l
.SH "NAME"
8 years ago
web-greeter
.SH "SYNOPSIS"
.PP
LightDM greeter that uses chromium for theming via HTML/JavaScript\&.
.PP
.SH "DESCRIPTION"
.PP
web-greeter is a LightDM greeter that uses chromium for theming\&. Themes can be written
using a combination of HTML and Javascript\&.
.PP
.SH "OPTIONS"
.TP
\fB\-h, \-\-help\fR
Shows the help
.TP
\fB\-v, \-\-version\fR
Print program version
.TP
\fB\-\-debug\fR
Forces the greeter to run in debug mode
.TP
\fB\-\-normal\fR
Forces the greeter to run in normal mode
.TP
\fB\-\-list\fR
Shows the available themes
.TP
\fB\-\-theme\ \fITHEME\fR
Sets the theme to use
.PP
.SH "THEME JAVASCRIPT API"
Please note that all properties and functions which are marked as "deprecated" are
only available for backwards compatibility and will be removed in a future version of
8 years ago
web-greeter\&. Theme authors should not use any deprecated properties or
functions in new works and should update any existing works which make use of
deprecated properties and/or functions to ensure continued proper functionality\&.
.PP
4 years ago
See full documentation on https://jezerm\&.github\&.io/web-greeter/
.PP
3 years ago
The following signals are available to connect javascript functions when a LightDM
or web-greeter signal occurs:
.PP
\fBlightdm.authentication_complete\fR
.RS 4
3 years ago
Gets emitted when the greeter has completed authentication\&.
.RE
.PP
3 years ago
\fBlightdm.autologin_timer_expired\fR
.RS 4
3 years ago
Gets emitted when the automatic login timer has expired\&.
.RE
.PP
3 years ago
\fBlightdm.show_message\fR
.RS 4
3 years ago
Gets emitted when the greeter should show a message to the user\&.
This signal emits a \fBmessage: string\fR and a \fBtype: number\fR\&.
.RE
.PP
3 years ago
\fBlightdm.show_prompt\fR
.RS 4
3 years ago
Gets emitted when the greeter should show a prompt to the user\&.
This signal emits a \fBmessage: string\fR and a \fBtype: number\fR\&.
.RE
.PP
The following functions are available for the greeter to call to execute
3 years ago
actions within LightDM:
.PP
\fBlightdm\&.authenticate(username)\fR
.RS 4
Specifies the username of the user we'd like to start authenticating as\&. Note that
if you call lightdm.authenticate with no argument, LightDM (via PAM) will issue
3 years ago
a show_prompt() call to ask for the username\&.
.RE
.PP
\fBlightdm\&.authenticate_as_guest()\fR
.RS 4
Authenticates as the guest user\&.
.RE
.PP
\fBlightdm\&.cancel_authentication()\fR
.RS 4
Cancels the authentication of any user currently in the process of
authenticating\&.
.RE
.PP
\fBlightdm\&.cancel_autologin()\fR
.RS 4
3 years ago
Cancels the authentication of the autologin user\&.
.RE
.PP
\fBlightdm\&.start_session(session)\fR
.RS 4
Once LightDM has successfully authenticated the user, start the user's session
by calling this function\&. "session" is the authenticated user's session\&.
If no session is passed, start the authenticated user with the system default
3 years ago
session.
.RE
.PP
\fBlightdm\&.respond(text)\fR
.RS 4
When LightDM has prompted for input, provide the response to LightDM\&.
3 years ago
.RE
.PP
\fBlightdm\&.set_language(lang)\fR
.RS 4
Will set the language for the current LightDM session\&.
.RE
.PP
\fBlightdm\&.shutdown()\fR
.RS 4
Shuts down the system, if the greeter has the authority to do so\&.
Check if greeter can shutdown with \fBlightdm\&.can_shutdown\fR
.RE
.PP
\fBlightdm\&.restart()\fR
.RS 4
Restarts the system, if the greeter has the authority to do so\&.
3 years ago
Check if greeter can restart with \fBlightdm\&.can_restart\fR
.RE
.PP
3 years ago
\fBlightdm\&.suspend()\fR
.RS 4
3 years ago
Suspends the system, if the greeter has the authority to do so\&.
Check if greeter can suspend with \fBlightdm\&.can_suspend\fR
.RE
.PP
3 years ago
\fBlightdm\&.hibernate()\fR
.RS 4
3 years ago
Hibernates the system, if the greeter has the authority to do so\&.
Check if greeter can hibernate with \fBlightdm\&.can_hibernate\fR
.RE
.PP
Variables available within the greeter are:
.PP
3 years ago
\fBlightdm\&.authentication_user\fR: string
.RS 4
3 years ago
The username of the authentication user being authenticated or null if no
authentication is in progress\&.
.RE
.PP
3 years ago
\fBlightdm\&.autologin_guest\fR: boolean
.RS 4
3 years ago
Indicates the guest user should be used for autologin\&.
.RE
.PP
3 years ago
\fBlightdm\&.autologin_timeout\fR: number
.RS 4
3 years ago
The number of seconds to wait before automatically logging in\&.
.RE
.PP
3 years ago
\fBlightdm\&.autologin_user\fR: string
.RS 4
3 years ago
The name of the user account that should be logged into
automatically after timed login delay has passed\&.
.RE
.PP
3 years ago
\fBlightdm\&.can_hibernate\fR: boolean
.RS 4
3 years ago
Whether or not the system can be made to hibernate by the greeter\&.
.RE
.PP
3 years ago
\fBlightdm\&.can_restart\fR: boolean
.RS 4
3 years ago
Whether or not the system can be restarted by the greeter\&.
.RE
.PP
3 years ago
\fBlightdm\&.can_shutdown\fR: boolean
.RS 4
3 years ago
Whether or not the system can be shutdown by the greeter\&.
.RE
.PP
3 years ago
\fBlightdm\&.can_suspend\fR: boolean
.RS 4
3 years ago
Whether or not the system can be suspended by the greeter\&.
.RE
.PP
3 years ago
\fBlightdm\&.default_session\fR: string
.RS 4
3 years ago
The name of the default session (as configured in lightdm.conf)\&.
.RE
.PP
3 years ago
\fBlightdm\&.has_guest_account\fR: boolean
.RS 4
3 years ago
A guest account is available for login\&.
.RE
.PP
3 years ago
\fBlightdm\&.hide_users_hint\fR: boolean
.RS 4
3 years ago
The whole list of users should not be displayed\&.
.RE
.PP
3 years ago
\fBlightdm\&.hostname\fR: string
.RS 4
3 years ago
The hostname of the system\&.
.RE
.PP
3 years ago
\fBlightdm\&.is_authenticated\fR: boolean
.RS 4
3 years ago
Indicates if the user has successfully authenticated\&.
.RE
.PP
3 years ago
\fBlightdm\&.in_authentication\fR: boolean
.RS 4
3 years ago
Indicates if lightdm is currently in the authentication phase\&.
.RE
.PP
3 years ago
\fBlightdm\&.language\fR: LightDM.Language | null
.RS 4
3 years ago
The currently selected language\&.
.RE
.PP
3 years ago
\fBlightdm\&.languages\fR: LightDM.Languages[]
.RS 4
3 years ago
The languages that are available on the system\&.
.RE
.PP
3 years ago
\fBlightdm\&.layout\fR: LightDM.Layout
.RS 4
3 years ago
The currently active layout for the selected user.
.RE
.PP
3 years ago
\fBlightdm\&.layouts\fR: LightDM.Layout[]
.RS 4
3 years ago
The keyboard layouts that are available on the system\&.
.RE
.PP
3 years ago
\fBlightdm\&.select_guest_hint\fR: boolean
.RS 4
3 years ago
The guest user should be selected by default for login\&.
.RE
.PP
3 years ago
\fBlightdm\&.select_user_hint\fR: string
.RS 4
3 years ago
The username that should be selected by default for login\&.
.RE
.PP
3 years ago
\fBlightdm\&.sessions\fR: LightDM.Session[]
.RS 4
3 years ago
The sessions that are available on the system\&.
.RE
.PP
3 years ago
\fBlightdm\&.users\fR: LightDM.User[]
.RS 4
3 years ago
The users that are able to log in\&. Returns an Array of LightDMUser
objects\&.
.RE
.PP
3 years ago
The \fBtheme_utils\fR object has some utility functions associated with it which
are intended to make a theme author's work easier\&.
.PP
\fBtheme_utils\&.dirlist(path)\fR
.RS 4
Returns an array of strings of filenames present at "path", or Null if the
path does not exist\&.
.RE
.PP
\fBtheme_utils\&.bind_this(context)\fR
.RS 4
Binds this to class, context, for all of the class's methods\&.
.RE
.PP
\fBtheme_utils\&.get_current_localized_time()\fR
.RS 4
4 years ago
Get the current time in a localized format\&. Language is auto-detected by default,
but can be set manually in the greeter config file\&.
.RE
\fBtheme_utils\&.get_current_localized_date()\fR
.RS 4
Get the current date in a localized format\&. Language is auto-detected by default,
but can be set manually in the greeter config file\&.
.RE
.PP
Please see the LightDM API documentation for the complete list of calls
4 years ago
available\&. The web-greeter implements all of the LightDM API\&.
.PP
.SH "CONFIGURATION"
.PP
\fB/etc/lightdm/web-greeter\&.yml\fR
.RS 4
3 years ago
Configuration file\&.
.RE
.SH "FILES"
.PP
\fB/usr/share/web-greeter/themes\fR
.RS 4
Directory where themes should be stored\&.
.RE
.SH "EXAMPLES"
.PP
4 years ago
Please see the "dracula", "gruvbox" and "simple" themes that are shipped with web-greeter\&.
.TP
\fBCommand Line\fR
.RS 4
web-greeter --theme simple --debug
.TP
web-greeter --normal
.SH "SEE ALSO"
.PP
http://people\&.ubuntu\&.com/~robert-ancell/lightdm/reference/
4 years ago
.PP
https://lazka\&.github\&.io/pgi-docs/#LightDM-1
4 years ago
.PP
https://jezerm\&.github\&.io/web-greeter/
3 years ago
.PP
https://github.com/JezerM/web-greeter
.SH "AUTHOR"
.PP
The legacy lightdm-webkit-greeter was written by Robert Ancell <robert\&.ancell\&@canonical\&.com\&>\&.
It was ported to webkit2 by the Antergos Developers <dev@antergos\&.com>\&. Also includes code improvements
3 years ago
contributed by Scott Balneaves <sbalneav@ltsp\&.org>\&. Forked and mantained by JezerM <amyuki4@gmail\&.com>\&.