sheredom / subprocess.h

🐜 single header process launching solution for C and C++
The Unlicense
1.1k stars 97 forks source link

Feature Request: set the cwd for created processes #52

Open rgrinberg opened 2 years ago

rgrinberg commented 2 years ago

What it says on the tin. Essentially inserting a chdir before the exec.

sheredom commented 2 years ago

Should be doable - but I don't have the bandwidth at present to do this.

xianglin1998 commented 8 months ago

For windows: image For Linux: image

When I have time, I will submit the changes in the image above. Using the changes above is better than chdir because it will not damage the working directory of the parent process.

sheredom commented 8 months ago

I look forward to the PR!