1--- a/textext/base.py
2+++ b/textext/base.py
3@@ -95,7 +95,16 @@ class TexText(inkex.EffectExtension):
4 def __init__(self):
5
6 self.config = Settings(directory=defaults.textext_config_path)
7+ # config.json is stored in ~/.config/inkscape/extensions/textext for
8+ # the next invocation, but since that next invocation could be using
9+ # a different latex derivation, make sure we overwrite the executable
10+ # paths with updated ones:
11+ self.config["pdflatex-executable"] = "@pdflatex@/bin/pdflatex";
12+ self.config["lualatex-executable"] = "@lualatex@/bin/lualatex";
13 self.cache = Cache(directory=defaults.textext_config_path)
14+ if "requirements_checker" in self.cache.values:
15+ self.cache["requirements_checker"]["available_tex_to_pdf_converters"]["pdflatex"] = "@pdflatex@/bin/pdflatex";
16+ self.cache["requirements_checker"]["available_tex_to_pdf_converters"]["lualatex"] = "@lualatex@/bin/lualatex";
17 previous_exit_code = self.cache.get("previous_exit_code", None)
18
19 if previous_exit_code is None: