[OS X TeX] Biber

koch at math.uoregon.edu koch at math.uoregon.edu
Tue Oct 20 20:13:27 CEST 2020


Folks,

I looked briefly at the TeXShop code. TeXShop calls TeX using the NSTask class in Cocoa. Various items can be set before calling a task, and one is a dictionary called the "environment". This is setup by TeXShop by first calling

	 [[NSProessInfo processInfo] environment]

This call gets the environment of the currently running task, and therefore the environment for TeXShop itself. One of the items in this environment dictionary is  ``PATH''. TeXShop modifies this environment for the task it is about to call by appending two items to the path:

	1) the path for TeX Live

	2) the path for ghostscript

Both of these paths can be set in TeXShop Preferences, and by default they are

	1) /Library/TeX/texbin

	2) /usr/local/bin

So tasks know about /Library/TeX/texbin, but NOT because shells know this value, and not because /etc/paths.d knows it, but instead because TeXShop set it directly.

Dick Koch


----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
                https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex


More information about the macostex-archives mailing list.