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=ba0c545db7a9732d8bdf9149f361130638efa6bc;hb=dae88237d66fd49588cc27136c59376c443f9e9f;hp=dea26e665debbfe3c9d7f701cd6d15598d5da593;hpb=13a06349251874bd35d2f03c3fc93217cee749a2;p=evince.git diff --git a/backend/dvi/mdvi-lib/setup.c b/backend/dvi/mdvi-lib/setup.c index dea26e66..ba0c545d 100644 --- a/backend/dvi/mdvi-lib/setup.c +++ b/backend/dvi/mdvi-lib/setup.c @@ -13,9 +13,10 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +#include #include #include #include @@ -25,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; @@ -40,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); }