Am 28.12.2004 um 14:09 schrieb Jean-Marc Lasgouttes:

"Andreas" == Andreas Vox <[EMAIL PROTECTED]> writes:

Andreas> For a real test this code has to be executed from LyX proper, Andreas> so we can see what happens when MacOS uses its LaunchServices Andreas> to start LyX. I just checked what MacOS provides as args[0]: Andreas> /Applications/LyX.app/Contents/MacOS/LyX ! I hope your code Andreas> doesn't rely on args[0] being an existing file ...

LyX and lyx are basically the same since HFS is not case sensitive, I
think.

True, I forgot about that ...

Andreas> So obviously the LaunchServices provide the bin directory of Andreas> the app plus the "official" application name for args[0].

I think it provides the name that is given in Info.plist (I forgot the
property name).

In my Info.plist I have <key>CFBundleExecutable</key> <string>package</string> which does _not_ hinder OSX to start LyX as usual. As I said, it's all clear from the documentation but unfortunately inconsistent with empirical data ... :-(

/Andreas



Reply via email to