Method
XdpPortaldynamic_launcher_prepare_install
Declaration [src]
void
xdp_portal_dynamic_launcher_prepare_install (
XdpPortal* portal,
XdpParent* parent,
const char* name,
GVariant* icon_v,
XdpLauncherType launcher_type,
const char* target,
gboolean editable_name,
gboolean editable_icon,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer data
)
Description [src]
Presents a dialog to the user so they can confirm they want to install a launcher to their desktop.
When the request is done, callback
will be called. You can then
call xdp_portal_dynamic_launcher_prepare_install_finish()
to get the results.
Parameters
parent |
XdpParent |
Parent window information. |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
name |
const char* |
The name for the launcher. |
|
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
icon_v |
GVariant* |
A |
|
The data is owned by the caller of the function. | |
launcher_type |
XdpLauncherType |
The type of the launcher. |
|
target |
const char* |
The URL if the launcher is for a web app, or |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
editable_name |
gboolean |
If |
|
editable_icon |
gboolean |
If |
|
cancellable |
GCancellable* |
Optional |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
callback |
GAsyncReadyCallback |
A callback to call when the request is done. |
|
data |
gpointer |
Data to pass to |