meson: Translate and install desktop file

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-11-26 15:32:25 +07:00 committed by Arun Raghavan
parent 68f9984ac0
commit f5bc45a941

View file

@ -44,6 +44,22 @@ if x11_dep.found()
install : true, install : true,
install_dir : bindir, install_dir : bindir,
) )
desktop_file = i18n.merge_file(
input : 'pulseaudio.desktop.in',
output : 'pulseaudio.desktop',
po_dir : po_dir,
type : 'desktop',
install : true,
install_dir : join_paths(sysconfdir, 'xdg', 'autostart'),
)
desktop_utils = find_program('desktop-file-validate', required: false)
if desktop_utils.found()
test('Validate desktop file', desktop_utils,
args: [ desktop_file ],
)
endif
endif endif
# Configuration files # Configuration files