From f5bc45a941af893af5b0d4414193f01e0fc5a52e Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Mon, 26 Nov 2018 15:32:25 +0700 Subject: [PATCH] meson: Translate and install desktop file Signed-off-by: Arnaud Rebillout --- src/daemon/meson.build | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/daemon/meson.build b/src/daemon/meson.build index 9d54bc95c..b1a34541b 100644 --- a/src/daemon/meson.build +++ b/src/daemon/meson.build @@ -44,6 +44,22 @@ if x11_dep.found() install : true, 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 # Configuration files