Check for pdflatex tool.

If not present, exit.
This commit is contained in:
Pascal Obry
2017-04-09 10:18:02 +02:00
parent 1d72457dc1
commit 7d9bf8c729

View File

@@ -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