mirror of https://github.com/mpv-player/mpv
0279a44d93
Add env and detach arguments. This means the command.c code must use the "new" mp_subprocess2(). So also take this as an opportunity to clean up. win32 support gets broken by it, because it never made the switch to the newer function. The new detach parameter makes the "run" command fully redundant, but I guess we'll keep it for simplicity. But change its implementation to use mp_subprocess2() (couldn't do this earlier, because win32). Privately, I'm going to use the "env" argument to add a key binding that starts a shell with a FILE environment variable set to the currently playing file, so this is very useful to me. Note: breaks windows, so for example youtube-dl on windows will not work anymore. mp_subprocess2() has to be implemented. The old functions are gone, and subprocess-win.c is not built anymore. It will probably work on Cygwin. |
||
---|---|---|
.. | ||
ref | ||
chmap.c | ||
gl_video.c | ||
img_format.c | ||
input-gamepad.conf | ||
json.c | ||
linked_list.c | ||
paths.c | ||
repack.c | ||
scale_sws.c | ||
scale_test.c | ||
scale_test.h | ||
scale_zimg.c | ||
subtimes.js | ||
tests.c | ||
tests.h |