launch


Description:

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

Launch an application to open the file.

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.FileLauncher.launch_finish] to obtain the result.

Parameters:

this

a `GtkFileLauncher`

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