Method

FlatpakInstallationlaunch_full

since: 1.1

Declaration [src]

gboolean
flatpak_installation_launch_full (
  FlatpakInstallation* self,
  FlatpakLaunchFlags flags,
  const char* name,
  const char* arch,
  const char* branch,
  const char* commit,
  FlatpakInstance** instance_out,
  GCancellable* cancellable,
  GError** error
)

Description [src]

Launch an installed application.

You can use flatpak_installation_get_installed_ref() or flatpak_installation_get_current_installed_app() to find out what builds are available, in order to get a value for commit.

Compared to flatpak_installation_launch(), this function returns a FlatpakInstance that can be used to get information about the running instance. You can also use it to wait for the instance to be done with g_child_watch_add() if you pass the

FLATPAK_LAUNCH_FLAGS_DO_NOT_REAP flag.

Available since: 1.1

Parameters

flags

Type: FlatpakLaunchFlags

Set of FlatpakLaunchFlags.

name

Type: const char*

Name of the app to launch.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
arch

Type: const char*

Which architecture to launch (default: current architecture).

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
branch

Type: const char*

Which branch of the application (default: “master”).

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
commit

Type: const char*

The commit of branch to launch.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
instance_out

Type: FlatpakInstance

Return location for a FlatpakInstance.

The argument can be NULL.
The data is owned by the caller of the method.
cancellable

Type: GCancellable

A GCancellable.

The argument can be NULL.
The data is owned by the caller of the method.
error

Type: GError **

The return location for a recoverable error.

The argument can be NULL.
If the return location is not NULL, then you must initialize it to a NULL GError*.
The argument will be left initialized to NULL by 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.

Return value

Type: gboolean

TRUE, unless an error occurred.