From 7f91e2684e8600c45512e36f03aadff0b825a1b0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 12 May 2018 16:03:04 +0200 Subject: lua: reimplement mp.subprocess_detached() by invoking the "run" command The "run" command is old. I'm not sure why the separate Lua implementation was added. But maybe it as because the "run" command used to be limited to a small number of arguments. This limit has been removed a while ago. In any case, the old implementation is not needed anymore. --- player/lua/defaults.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'player/lua') diff --git a/player/lua/defaults.lua b/player/lua/defaults.lua index feb400111a..a00a563478 100644 --- a/player/lua/defaults.lua +++ b/player/lua/defaults.lua @@ -640,4 +640,8 @@ function mp_utils.subprocess(t) return res end +function mp_utils.subprocess_detached(t) + mp.commandv("run", unpack(t.args)) +end + return {} -- cgit v1.2.3