Optionalproperties: Partial<ConstructorProps>ReadonlycancelCancels the current greetd authentication session.
Notifies listeners that a property changed and emits the 'changed' signal.
The property name that changed
Connects a callback to a signal on this service.
The signal name (defaults to 'changed')
The callback to invoke when the signal is emitted
The signal connection ID
ReadonlycreateCreates a new greetd authentication session for the given user.
The username to authenticate
The greetd response (typically an auth_message prompt)
Creates an incremental list binding that reuses existing widgets.
Instead of recreating all widgets on every update, this method caches widgets by a key function and only creates new widgets for new items, destroying widgets for removed items.
A Binding that produces an array of widgets
ProtecteddisconnectClean up all tracked signal connections Call this in service-specific dispose implementations
Dispose of service resources Override in subclasses to add specific cleanup
Emits a signal, warning if the signal was not registered via Service.register.
The warning is cheap (a Set lookup per emit) and helps catch typos
and missing signal declarations that silently break .bind().
ReadonlyloginPerforms a complete login flow: create session, authenticate, and start session.
The user to log in as
The authentication password
Command to start (string is shell-parsed, array used directly)
Optional environment variables for the session
ReadonlypostResponds to a greetd authentication challenge.
Optionalresponse: stringThe authentication response (e.g. password)
The greetd response
ProtectedretryReadonlystartStarts the authenticated session with the given command.
Command to execute (string is shell-parsed)
Optional environment variables
The greetd response
ProtectedtrackTrack a signal connection for automatic cleanup
The object the signal is connected to (defaults to this)
The signal connection ID
Track a signal connection for automatic cleanup
The signal connection ID
Updates a property value and emits a notify signal if the value changed.
Performs a deep equality check via JSON serialization to avoid unnecessary notifications.
The property name in kebab-case
The new value
StaticimportStaticpspecStaticregister
Greetd Service
Service for communicating with the greetd login daemon over its Unix socket.
Lifecycle:
Each method creates a new socket connection for the request and closes it after receiving the response.
Fires
changed - Emitted when service state changes