X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=backend%2Fdvi%2Fmdvi-lib%2Fsetup.c;h=a75f0282eaa9e026eff880e6e85aa1898c71e73f;hb=7a6187803fffe561099ea780692ab5b959093220;hp=1e60a5bdfcaa86ac2702b6ed6e5c1f1903b4ccdd;hpb=1af6600934d1f723e5b492b8322e52a1144fb0af;p=evince.git diff --git a/backend/dvi/mdvi-lib/setup.c b/backend/dvi/mdvi-lib/setup.c index 1e60a5bd..a75f0282 100644 --- a/backend/dvi/mdvi-lib/setup.c +++ b/backend/dvi/mdvi-lib/setup.c @@ -26,7 +26,8 @@ #include "private.h" void mdvi_init_kpathsea(const char *program, - const char *mfmode, const char *font, int dpi) + const char *mfmode, const char *font, int dpi, + const char *texmfcnf) { const char *p; @@ -41,5 +42,7 @@ void mdvi_init_kpathsea(const char *program, kpse_set_program_enabled(kpse_pk_format, 1, kpse_src_compile); kpse_set_program_enabled(kpse_tfm_format, 1, kpse_src_compile); kpse_set_program_enabled(kpse_ofm_format, 1, kpse_src_compile); + if (texmfcnf != NULL) + xputenv("TEXMFCNF", texmfcnf); }