Module mimeapps

Finding associations between MIME types and applications.

See Also

MIME Applications Associations

Functions

NameDescription
findAssociatedApplications(mimeType, mimeAppsListFiles, mimeInfoCacheFiles, desktopFileProvider) Find associated applications for given MIME type.
findDefaultApplication(mimeType, mimeAppsListFiles, mimeInfoCacheFiles, desktopFileProvider) Find default application for given MIME type.
findKnownAssociatedApplications(mimeType, mimeAppsListFiles, mimeInfoCacheFiles, desktopFileProvider) Find all known associated applications for given MIME type, including explicitly removed by user.
listAssociatedApplications(mimeType, mimeAppsListFiles, mimeInfoCacheFiles) List associated applications for given MIME type.
listDefaultApplications(mimeType, mimeAppsListFiles) List explicitily set default applications for given MIME type.
listKnownAssociatedApplications(mimeType, mimeAppsListFiles, mimeInfoCacheFiles) List all known associated applications for given MIME type, including explicitly removed by user.
mimeAppsListFiles(paths) Create MimeAppsListFile objects for paths.
mimeAppsListFiles() ditto, but automatically read MimeAppsListFile objects from determined system paths.
mimeAppsListPaths() Find all known mimeapps.list files locations. Found paths are not checked for existence.
mimeAppsListPaths() Find all known mimeapps.list files locations. Found paths are not checked for existence.
mimeInfoCacheFiles(paths) Create MimeInfoCacheFile objects for paths.
mimeInfoCacheFiles() ditto, but automatically read MimeInfoCacheFile objects from determined system paths.
mimeInfoCachePaths() Find all known mimeinfo.cache files locations. Found paths are not checked for existence.
mimeInfoCachePaths() Find all known mimeinfo.cache files locations. Found paths are not checked for existence.
updateAssociations(fileName, query) Apply query for file with fileName. This should be mimeapps.list file. If file does not exist it will be created.
updateAssociations(query) Apply query for writable mimeapps.list files.
writableMimeAppsListPaths() Find all writable mimeapps.list files locations. Found paths are not checked for existence.
writableMimeAppsListPaths() Find all writable mimeapps.list files locations. Found paths are not checked for existence.

Interfaces

NameDescription
IDesktopFileProvider Interface for desktop file provider.

Classes

NameDescription
DesktopFileProvider Implementation of simple desktop file provider.
MimeAppsGroup IniLikeGroup subclass for easy access to the list of applications associated with given type.
MimeAppsListFile Class represenation of single mimeapps.list file containing information about MIME type associations and default applications.
MimeInfoCacheFile Class represenation of single mimeinfo.cache file containing information about MIME type associations.

Structs

NameDescription
AssociationUpdateQuery Struct used for construction of file assocation update query. This allows to reuse the same query many times or for many mimeapps.list files.