File.queryDefaultHandler

gio.app_info.AppInfo queryDefaultHandler(gio.cancellable.Cancellable cancellable = null)

Returns the #GAppInfo that is registered as the default application to handle the file specified by file.

If cancellable is not null, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error [gio.types.IOErrorEnum.Cancelled] will be returned.

Parameters

cancellableoptional #GCancellable object, null to ignore

Returns

a #GAppInfo if the handle was found,

null if there were errors. When you are done with it, release it with [gobject.object.ObjectWrap.unref]

Throws

[ErrorWrap]