User Tools

Site Tools


k15:k15.3:start

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

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.
k15/k15.3/start.txt · Last modified: by 127.0.0.1