Commit 4a80a51a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Validate the .desktop file with desktop-utils where available

parent ca2cb5f0
...@@ -77,6 +77,9 @@ AC_CHECK_TOOL(AR, ar, :) ...@@ -77,6 +77,9 @@ AC_CHECK_TOOL(AR, ar, :)
AC_CHECK_TOOL(LD, ld, :) AC_CHECK_TOOL(LD, ld, :)
AC_CHECK_TOOL(DLLTOOL, dlltool, :) AC_CHECK_TOOL(DLLTOOL, dlltool, :)
AC_ARG_VAR([DESKTOP_FILE_VALIDATE], [Validator for desktop entry files])
AC_CHECK_PROGS(DESKTOP_FILE_VALIDATE, [${DESKTOP_FILE_VALIDATE} desktop-file-validate], :)
dnl Check for compiler properties dnl Check for compiler properties
AC_C_CONST AC_C_CONST
AC_C_INLINE AC_C_INLINE
......
...@@ -10,8 +10,9 @@ EXTRA_DIST += vlc.desktop.in ...@@ -10,8 +10,9 @@ EXTRA_DIST += vlc.desktop.in
CLEANFILES += $(appdata_DATA) CLEANFILES += $(appdata_DATA)
vlc.desktop: vlc.desktop.in $(top_builddir)/config.status vlc.desktop: vlc.desktop.in $(top_builddir)/config.status
$(AM_V_GEN)sed -e 's,\@bindir\@,$(bindir),g' < "$<" > $@.tmp $(AM_V_GEN)sed -e 's,\@bindir\@,$(bindir),g' < "$<" > tmp-$@
$(AM_V_at)mv -f $@.tmp $@ $(AM_V_at)$(DESKTOP_FILE_VALIDATE) tmp-$@
$(AM_V_at)mv -f tmp-$@ $@
iconsdatadir = $(datadir)/icons/hicolor iconsdatadir = $(datadir)/icons/hicolor
icons16dir = $(iconsdatadir)/16x16/apps icons16dir = $(iconsdatadir)/16x16/apps
......
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