meson, desktop, plug-ins: Generate MIMEtypes var dynamically

This way, we avoid divergence with MIMEs declared on the
plug-ins .c and .py files and we eliminate duplicate work.

See also: 2ce3c604
This commit is contained in:
Bruno Lopes 2025-06-13 12:36:38 -03:00
parent a2bd03a471
commit d56676a2fa
No known key found for this signature in database
4 changed files with 93 additions and 118 deletions

View file

@ -5,7 +5,7 @@ desktop_conf.set('GIMP_COMMAND', gimp_command)
desktop_conf.set('GIMP_VERSION', gimp_version)
desktop_conf.set('GIMP_APP_VERSION', gimp_app_version)
desktop_conf.set('GIMP_DESKTOP_NAME', gimp_desktop_name)
desktop_conf.set('MIME_TYPES', ';'.join(MIMEtypes))
desktop_conf.set('MIME_TYPES', 'image/x-xcf;' + MIMEtypes_dep.get_variable('MIMEtypes'))
desktop_conf.set('BUG_REPORT_URL', bug_report_url)
desktopfilein = configure_file(