Commit ce894dfd authored by Jehan's avatar Jehan

configure: MIME_TYPES value only cares about import.

This variable is used for the MimeType key in the desktop file, which
allows to know if a software can open a file with the Exec key command.
Whether GIMP can also export such format is not to be taken into
consideration.
parent a207570c
......@@ -1734,9 +1734,13 @@ PKG_CHECK_MODULES(POPPLER, [poppler-glib >= poppler_required_version],
[add_deps_error([poppler-data])]),
[add_deps_error([poppler-glib >= poppler_required_version])])
have_poppler=yes
AC_DEFINE(HAVE_POPPLER, 1, [Define to 1 if libpoppler is available])
# MIME_TYPES is for the formats we can open as used for instance in the
# desktop file. Even if cairo-pdf (used for PDF export) is not
# installed, the mime-type list should contain application/pdf.
MIME_TYPES="$MIME_TYPES;application/pdf"
#####################
# Check for cairo-pdf
#####################
......@@ -1754,11 +1758,6 @@ fi
AC_SUBST(FILE_PDF_SAVE)
## If both poppler and cairo-pdf are enabled then we have complete PDF support
if test "x$have_cairo_pdf" = xyes && test "x$have_poppler" = xyes; then
MIME_TYPES="$MIME_TYPES;application/pdf"
fi
###################
# Check for libwmf2
......
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