mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-27 12:16:01 +01:00
Validate desktop file
This commit is contained in:
parent
c239e84ddb
commit
49b55d648b
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue