Signal
FlatpakTransaction::webflow-start
since: 1.5.1
Declaration
gboolean
webflow_start (
FlatpakTransaction* self,
gchar* remote,
gchar* url,
GVariant* options,
gint id,
gpointer user_data
)
Description [src]
The ::webflow-start signal gets emitted when some kind of user
authentication is needed during the operation. If the caller handles this
it should show the url in a webbrowser and return TRUE. This will
eventually cause the webbrowser to finish the authentication operation and
operation will continue, as signaled by the webflow-done being emitted.
If the client does not support webflow then return FALSE from this signal
(or don’t implement it). This will abort the authentication and likely
result in the transaction failing (unless the authentication was somehow optional).
During the time between webflow-start and webflow-done the client can call
flatpak_transaction_abort_webflow() to manually abort the authentication.
This is useful if the user aborted the authentication operation some way,
like e.g. closing the browser window.
| Default handler: The default handler is called after the handlers added via |
| Available since: 1.5.1 |
Parameters
remote-
Type:
gchar*The remote we’re authenticating with.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. url-
Type:
gchar*The url to show.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. options-
Type:
GVariantExtra options, currently unused.
The data is owned by the caller of the function. id-
Type:
gintThe id of the operation, can be used to cancel it.