This class allows you to process the data in the file mimeapps. list (MIME database) as defined by the freedesktop standard. The mime type is used to start an application that matches the type. After the file below, for example, the program bluefish is started for a text file with the extension .csv.
This is - for example under Ubuntu 12.04 - the content of the file ~/.local/share/applications/mimeapps.list:
[Default Applications] x-scheme-handler/mailto=thunderbird.desktop [Added Associations] x-scheme-handler/mailto=thunderbird.desktop; application/x-java=gedit.desktop;bluefish.desktop; application/x-trash=gedit.desktop; text/csv=bluefish.desktop; text/plain=bluefish.desktop;libreoffice-writer.desktop; application/octet-stream=libreoffice-writer.desktop;ghex.desktop;gedit.desktop;bluefish.desktop; image/jpeg=ghex.desktop;bluefish.desktop; application/x-gambas3=gedit.desktop;
In close connection with this is obviously the file usr/share/applications/mimeinfo.cache, which is system-wide while the file mimeapps.list is used only for a certain system user.
This class is still under development. It is currently not known when this class can be used.
Diese Klasse erlaubt es, die Daten in der Datei mimeapps.list (MIME-Datenbank) zu verarbeiten, wie sie durch den freedesktop-Standard definiert wird. Anhand des Mime-Typs wird eine zu dem Typ passende Anwendung gestartet. Nach der u.a. Datei wird zum Beispiel bei einer Textdatei mit der Extension .csv das Programm bluefish gestartet.
Das ist – zum Beispiel unter Ubuntu 12.04 – der Inhalt der Datei ~/.local/share/applications/mimeapps.list:
[Default Applications] x-scheme-handler/mailto=thunderbird.desktop [Added Associations] x-scheme-handler/mailto=thunderbird.desktop; application/x-java=gedit.desktop;bluefish.desktop; application/x-trash=gedit.desktop; text/csv=bluefish.desktop; text/plain=bluefish.desktop;libreoffice-writer.desktop; application/octet-stream=libreoffice-writer.desktop;ghex.desktop;gedit.desktop;bluefish.desktop; image/jpeg=ghex.desktop;bluefish.desktop; application/x-gambas3=gedit.desktop;
Im engen Zusammenhang damit steht offensichtlich die Datei /usr/share/applications/mimeinfo.cache, die systemweit gilt, während die Datei mimeapps.list nur für einen bestimmten System-Benutzer verwendet wird.
Diese Klasse befindet sich noch in der Entwicklung. Es ist gegenwärtig nicht bekannt, wann man diese Klasse einsetzen kann.