Function findAssociatedApplications

Find associated applications for given MIME type.

const(DesktopFile)[] findAssociatedApplications(ListRange, CacheRange) (
  string mimeType,
  ListRange mimeAppsListFiles,
  CacheRange mimeInfoCacheFiles,
  IDesktopFileProvider desktopFileProvider
)
if (isForwardRange!ListRange && is(ElementType!ListRange : const(MimeAppsListFile)) && isForwardRange!CacheRange && is(ElementType!CacheRange : const(MimeInfoCacheFile)));

Parameters

NameDescription
mimeType MIME type or uri scheme handler in question.
mimeAppsListFiles Range of MimeAppsListFile objects to use in searching.
mimeInfoCacheFiles Range of MimeInfoCacheFile objects to use in searching.
desktopFileProvider Desktop file provider instance. Must be non-null.

Returns

Array of found DesktopFile objects capable of opening file of given MIME type or url of given scheme.

Note

If no applications found for this mimeType, you may consider to use this function on parent MIME type.

See Also

Adding/removing associations, findKnownAssociatedApplications, listAssociatedApplications