Question about recent juce_posix_SharedCode.h change


Since the *nix function execvp() ( supports absolute paths, why do we have to go through the current working directory instead of feeding an absolute path when creating a process?

To be generic enough, shouldn't that assertion just care if the path is non-empty and pointing to an existing file?

Not sure what you mean..?

The assertion only uses the CWD because otherwise creating a File from a partial path will itself throw an assertion to complain about not knowing what this path should be relative to.

But the path string that gets passed to execvp is the original one that the caller passed in, which could legitimately be a relative path.