Commit 49b55d64 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Validate desktop file

parent c239e84d
......@@ -10,7 +10,7 @@ install_data('org.pwmt.zathura.appdata.xml', install_dir: metainfodir)
install_data('org.pwmt.zathura.xml', install_dir: dbusinterfacesdir)
i18n = import('i18n')
i18n.merge_file('desktop',
desktop = i18n.merge_file('desktop',
input: 'org.pwmt.zathura.desktop.in',
output: 'org.pwmt.zathura.desktop',
install: true,
......@@ -18,3 +18,11 @@ i18n.merge_file('desktop',
po_dir: join_paths(meson.source_root(), 'po'),
type: 'desktop'
)
desktop_file_validate = find_program('desktop-file-validate', required: false)
if desktop_file_validate.found()
test('validate-desktop',
desktop_file_validate,
args: [desktop.full_path()]
)
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment