Skip to content

Stop duplicating supported mimetypes

Elvis Angelaccio requested to merge work/fix-duplicated-mimetypes into master

Since the mimetypes supporte by Ark must be both in the Ark .desktop file and in the JSON metadata of the plugins, they are currently duplicated in the CMakeLists.txt file of each plugin.

cmake >= 3.19 supports parsing of JSON files, so we can move those mimetypes directly inside the metadata JSON files of the plugins, and use cmake to parse those files and put the list of all mimetypes in the Ark .desktop file.

Merge request reports