summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2025-11-06 14:31:56 +0100
committerOz Tiram <[email protected]>2025-12-23 06:44:55 +0100
commit4327ec03df3dc1827695147ca7488ae5ce30b83b (patch)
tree2298ba54f2b130707daf4d4b62765b59c745071e /backend
parent167ed33d48bd0daa020c531a0e33f22e9bb8d13f (diff)
downloadatril-4327ec03df3dc1827695147ca7488ae5ce30b83b.tar.bz2
atril-4327ec03df3dc1827695147ca7488ae5ce30b83b.tar.xz
epub: Try and locate MathJax at configure time
Based on an XReader change[1], look up the MathJax source at configure time for better portability. If not specified manually, look in the common locations. This adds the --with-mathjax-directory=DIR configure option to manually specify the location, overriding the automatic discovery. The Meson part already exists, although was not used by the code. [1]: https://github.com/linuxmint/xreader/commit/9c6f363ad47f33b290d270489e50f7ad6071987a
Diffstat (limited to 'backend')
-rw-r--r--backend/epub/epub-document.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/epub/epub-document.c b/backend/epub/epub-document.c
index b63f91cb..224ab4b8 100644
--- a/backend/epub/epub-document.c
+++ b/backend/epub/epub-document.c
@@ -1683,7 +1683,7 @@ static void
epub_document_add_mathJax(gchar* containeruri,gchar* documentdir)
{
gchar *containerfilename= g_filename_from_uri(containeruri,NULL,NULL);
- GString *mathjaxdir = g_string_new("/usr/share/javascript/mathjax");
+ GString *mathjaxdir = g_string_new(MATHJAX_DIRECTORY);
gchar *mathjaxref = g_filename_to_uri(mathjaxdir->str,NULL,NULL);
gchar *nodedata = g_strdup_printf("%s/MathJax.js?config=TeX-AMS-MML_SVG",mathjaxref);