On Nov 16, 2004, at 1:21 PM, Ronald Florence wrote:
Jean-Marc Lasgouttes wrote:
It seems that it is possible to set environment variables (like PATH
maybe) of an application in its info.plist, using the LSElement key,
as described here:
http://developer.apple.com/documentation/MacOSX/Conceptual/ BPRuntimeConfig/Concepts/EnvironmentVars.html
http://developer.apple.com/documentation/MacOSX/Conceptual/ BPRuntimeConfig/Concepts/PListKeys.html#//apple_ref/doc/uid/20001431/ BCIGFHGH
This is a very good idea, with only one "gotcha" that I could see:
"These environment variables are set only for applications launched through Launch Services. If you run your executable directly from the command line, these environment variables are not set." To run LyX/Mac from the command line for debugging, the user would need to supply the PATH; a simple lyx-debug script could handle that.
On the other hand, although LyX 1.4.0 can be started from the command line, it remains in the background and refuses to take focus; hence straightforward debugging is pretty much impossible as it is. (Can this be fixed?) (Note that this is not true of 1.3.x.)
Anyway, let me know what you want me to do. Setting of environment variables in info.plist is straightforward. Is it just PATH that needs to be set? ... Where do I look in the lyx startup code?
Bennett