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

class File
queryDefaultHandler

Parameters

cancellable Cancellable

optional GCancellable 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(). [transfer full]

Throws

GException on failure.

Meta