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.
An alternative would be a ~/Library/Preferences/? file the user could configure to accomodate the location of the application, the local teTeX installation or other special situations. This is the canonical Apple approach.
--
Ronald