launch


Description:

public async bool launch (Window? parent, Cancellable? cancellable) throws Error

Launch an application to open the uri.

This may present an app chooser dialog to the user.

The callback will be called when the operation is completed. It should call [method@Gtk.UriLauncher.launch_finish] to obtain the result.

Parameters:

this

a `GtkUriLauncher`

parent

the parent `GtkWindow`

cancellable

a `GCancellable` to cancel the operation

callback

a callback to call when the operation is complete

user_data

data to pass to callback