Angus, Georg and Angus wrote:
>> Surely, argv[0] is by definition either an absolute path or is
relative
>> to CWD. The shell expands everything else. No?
>
> I am not sure. Maybe there are some weird shells or OSes that behave
> differently? Then points 1. and 2. make sense. Or the author of it
did
> simply not know that he does not need to expand the path manually.
Indeed, that would make sense. However, this code is from os_unix.C. It
makes no sense at all for a unix shell, does it?
os_unix.C is also is used by Mac / Darwin. MacOS has this weird library
named LaunchServices which is currently needed to start LyX.
Send me a patch if you want me to test some code.
Cheers
Andreas