[gimp] configure: MIME_TYPES value only cares about import.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] configure: MIME_TYPES value only cares about import.
- Date: Wed, 13 Dec 2017 19:19:57 +0000 (UTC)
commit ce894dfd1e9f720e4724e2c56332a9d03e037566
Author: Jehan <jehan girinstud io>
Date: Wed Dec 13 19:09:14 2017 +0100
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.
configure.ac | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5ec1c65..0d936d5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]