15.3 Class DesktopMime (gb. desktop)

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.

Download