Category in mimetypes.

Stef Bon stefbon at gmail.com
Tue Jan 6 03:11:52 PST 2015


Hi,

I'm working on a backupprogram, and it's the meaning thar the user can
select files to backup per directory:

- per individual mimetype (like application/vnd.oasis.opendocument.text)
- per group (like office or programming) of mimetypes

Now the first option is easy, the second I do not know.
Are there function groups of mimetypes?

What I mean with functional group (or category) is the collection
mimetypes like the group office:
all those mimetypes for officedocuments (document, spreadsheet,
presentation, database etc).

The category programming contains mimetypes like text/x-csrc and text/x-chdr.

Are these categories available somehow? When I look to a desktop file
in /usr/share/applications, I see the keyword Category. For example in
the libreoffice-base.desktop file there is the line

Categories=Office;Database;X-Red-Hat-Base;X-MandrivaLinux-MoreApplications-Databases;

This looks more like categories of programs, or is this the category
of mimetypes I'm looking for?

Stef


More information about the xdg mailing list