meson: Translate and install desktop file
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Mon, 26 Nov 2018 08:32:25 +0000 (15:32 +0700)
committerArun Raghavan <arun@arunraghavan.net>
Sat, 8 Jun 2019 09:57:00 +0000 (11:57 +0200)
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
src/daemon/meson.build

index 9d54bc95c30cce66af785991102459ff0bdefd5f..b1a34541b0dbe3fe11c055adc98ccaf5d8684959 100644 (file)
@@ -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