On 2009-March-05 , at 20:00 , Zulli, Louis P wrote:
Well, there's probably a better way to do this, but adding the line
export PATH=$PATH:/usr/local/bin:/usr/texbin
just before
exec "$CWD/bin/inkscape" "$@"
in /Applications/Inkscape.app/Contents/Resources/script did the trick. Now I can start Inkscape.app by clicking its icon, without "losing" Render-->LaTeX.
Note: I have pstoedit in /usr/local/bin, with latex and dvips in / usr/texbin. Without the added line, the value of PATH is only /usr/ bin:/bin:/usr/sbin:/sbin, rather than the value of PATH in my login shell.
There is already the following in /Applications/Inkscape.app/Contents/ Resources/bin/inkscape which launches Inkscape.
# Brutally add many things to the PATH. If the directories do not exist, they won't be used anyway. # People should really use ~/.macosx/environment.plist to set environment variables as explained by Apple: # http://developer.apple.com/qa/qa2001/qa1067.html # but since no one does, we correct this by making the 'classic' PATH additions here: # /usr/local/bin which, though standard, doesn't seem to be in the PATH # newer python as recommended by MacPython http://www.python.org/download/mac/ # Fink # MacPorts (former DarwinPorts) export PATH="/opt/local/bin:/sw/bin/:/Library/Frameworks/ Python.framework/Versions/Current/bin:/usr/local/bin:$CWD:$PATH"
I just added /usr/texbin/ (as of rev 20838).
JiHO --- http://jo.irisson.free.fr/