char* xdp_portal_dynamic_launcher_request_install_token ( XdpPortal* portal, const char* name, GVariant* icon_v, GError** error )
Requests a token which can be passed to
to complete installation of the launcher without user interaction.
This function only works when the caller’s app ID is in the allowlist for the portal backend being used. It’s intended for software centers such as GNOME Software or KDE Discover.
The name for the launcher.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.
GBytesIconas returned by g_icon_serialize(). Must be a png or jpeg no larger than 512x512, or an svg.
The data is owned by the caller of the function.
The return location for a recoverable error.
The argument can be
If the return location is not
NULL, then you must initialize it to a
The argument will left initialized to
NULLby the method if there are no errors.
In case of error, the argument will be set to a newly allocated
GError; the caller will take ownership of the data, and be responsible for freeing it.
A token that can be passed to
|The caller of the method takes ownership of the data, and is responsible for freeing it.|
|The value is a NUL terminated UTF-8 string.|