FileT.queryDefaultHandler

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 G_IO_ERROR_CANCELLED will be returned.

template FileT(TStruct)
queryDefaultHandler

Parameters

cancellable Cancellable

optional gio.Cancellable object, NULL to ignore

Return Value

Type: AppInfoIF

a GAppInfo if the handle was found, NULL if there were errors. When you are done with it, release it with g_object_unref()

Throws

GException on failure.