[texworks] LaTeXmk issue with Mac OS X Yosemite (new OS)
guillaume.cabanac at univ-tlse3.fr
Sun Oct 19 16:53:29 CEST 2014
> Sigh... there is definitely something wrong with TeXworks under Yosemite! I have had no problem with TeXShop using it's latexmk engines.
I wanted to check that the environment of the process launched by TeXworks is OK. So I added a Processing tool called env that launches the env command. Here is the result
The PATH does not reflect what I find in the "Paths for TeX and related programs" area under the "Typesetting" tab in the settings of TexWorks. The path "/usr/texbin" shows up in the GUI but it seems not to be passed to the process.
I had a look into the TWSystemCmd.cpp class in the TeXworks repository:
As I am not knowledgeable about Qt, I wondered how the process knows about the environment to set up?
"Certain processes need special environment settings in order to operate. You can set environment variables for your process by calling setEnvironment(). To set a working directory, call setWorkingDirectory(). By default, processes are run in the current working directory of the calling process." -- http://qt-project.org/doc/qt-5/qprocess.html
Could it be that one needs to specify the environment of the process in the code? (http://qt-project.org/doc/qt-5/qprocess.html#setProcessEnvironment)
If yes, why did LaTeXmk in TeXworks worked fine until this Yosemite OS came out? How could Qt be affected by this update?
More information about the texworks