summaryrefslogtreecommitdiff
path: root/backend/epub/epub-document.c
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2025-11-06 14:31:56 +0100
committerColomban Wendling <[email protected]>2025-11-06 14:41:54 +0100
commitf7277c4a02d44522fbcfd5d91cdd95eb2c788064 (patch)
tree2298ba54f2b130707daf4d4b62765b59c745071e /backend/epub/epub-document.c
parentf1a68c30ae822f82b3aad2e40c626e3260e8db2b (diff)
downloadatril-meson-fixes.tar.bz2
atril-meson-fixes.tar.xz
epub: Try and locate MathJax at configure timemeson-fixes
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/epub/epub-document.c')
-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);