# XeTeX and xdvipdfmx problem in Texstudio (2)

I'm issuing the same problem like in this question, but unfortunately it was closed for whatever reason: XeTeX and xdvipdfmx problem in Texstudio

When I try to compile the .tex file from the commandline it works with no errors, it seems that Texstudio doesn't use the same PATH variable as my shell does.

I can reproduce this error by removing the TeX folder from my PATH variable and execute:

simon$/usr/texbin/xelatex table.tex This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013) restricted \write18 enabled. entering extended mode (./table.tex LaTeX2e <2011/06/27> ======= some latex processing stuff ======= Overfull \hbox (15.0pt too wide) in paragraph at lines 39--40 [][] [1] (./table.aux) ) sh: xdvipdfmx: command not found (see the transcript file for additional information) Error 32512 (driver return code) generating output; file table.pdf may not be valid. Transcript written on table.log. seims-lappi:LatexTable simon$


I think that Xelatex causes this error by calling xdvipdfmx instead of ./xdvipdfmx internally, because other TeX Tools work fine, even without PATH variable set.

Version of Xelatex is:

-