From 7d9bf8c7294e7b62c99be41b41e465bd14f5541f Mon Sep 17 00:00:00 2001 From: Pascal Obry Date: Sun, 9 Apr 2017 10:18:02 +0200 Subject: [PATCH] Check for pdflatex tool. If not present, exit. --- contrib/pdf_slideshow.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/contrib/pdf_slideshow.lua b/contrib/pdf_slideshow.lua index e834ad7..bfcdedc 100644 --- a/contrib/pdf_slideshow.lua +++ b/contrib/pdf_slideshow.lua @@ -39,6 +39,7 @@ format (all fields can be the empty string): ]] local dt = require "darktable" +local df = require "lib/dtutils.file" require "official/yield" local gettext = dt.gettext @@ -50,6 +51,11 @@ local function _(msgid) return gettext.dgettext("pdf_slideshow", msgid) end +if not df.check_if_bin_exists("pdflatex") then + dt.print_error(_("pdflatex not found")) + return +end + dt.configuration.check_version(...,{4,0,0},{5,0,0}) dt.preferences.register