AppInfo.launchDefaultForUriAsync

void launchDefaultForUriAsync(string uri, gio.app_launch_context.AppLaunchContext context = null, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Async version of [gio.app_info.AppInfo.launchDefaultForUri].

This version is useful if you are interested in receiving error information in the case where the application is sandboxed and the portal may present an application chooser dialog to the user.

This is also useful if you want to be sure that the D-Bus–activated applications are really started before termination and if you are interested in receiving error information from their activation.

Parameters

urithe uri to show
contextan optional #GAppLaunchContext
cancellablea #GCancellable
callbacka #GAsyncReadyCallback to call when the request is done