FileIF.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.

interface FileIF
queryDefaultHandler

Parameters

cancellable Cancellable

optional #GCancellable object, %NULL to ignore

Return: 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.

Meta