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 GBytesIcon as 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.
launcher_type XdpLauncherType
 

The type of the launcher.

target const char*
 

The URL if the launcher is for a web app, or NULL.

 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 TRUE, the user will be able to edit the name of the launcher.

editable_icon gboolean
 

If TRUE, the user will be able to edit the icon of the launcher, if the implementation supports this.

cancellable GCancellable*
 

Optional GCancellable

 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 callback.