summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual/classes.rst
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/ref-manual/classes.rst')
-rw-r--r--documentation/ref-manual/classes.rst21
1 files changed, 21 insertions, 0 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst
index 5537eb774a..0d3d2586b4 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -1604,6 +1604,27 @@ The :ref:`mime <ref-classes-mime>` class generates the proper post-install and p
1604These scriptlets call ``update-mime-database`` to add the MIME types to 1604These scriptlets call ``update-mime-database`` to add the MIME types to
1605the shared database. 1605the shared database.
1606 1606
1607.. _ref-classes-mime-xdg:
1608
1609``mime-xdg.bbclass``
1610====================
1611
1612The :ref:`mime-xdg <ref-classes-mime-xdg>` class generates the proper
1613post-install and post-remove (postinst/postrm) scriptlets for packages
1614that install ``.desktop`` files containing ``MimeType`` entries.
1615These scriptlets call ``update-desktop-database`` to add the MIME types
1616to the database of MIME types handled by desktop files.
1617
1618Thanks to this class, when users open a file through a file browser
1619on recently created images, they don't have to choose the application
1620to open the file from the pool of all known applications, even the ones
1621that cannot open the selected file.
1622
1623If you have recipes installing their ``.desktop`` files as absolute
1624symbolic links, the detection of such files cannot be done by the current
1625implementation of this class. In this case, you have to add the corresponding
1626package names to the :term:`MIME_XDG_PACKAGES` variable.
1627
1607.. _ref-classes-mirrors: 1628.. _ref-classes-mirrors:
1608 1629
1609``mirrors.bbclass`` 1630``mirrors.bbclass``