summaryrefslogtreecommitdiffstats
path: root/player/lua
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-12 16:03:04 +0200
committerwm4 <wm4@nowhere>2018-05-24 19:56:34 +0200
commit7f91e2684e8600c45512e36f03aadff0b825a1b0 (patch)
treed17956db6ef353c99b6d4004df026c7288c638c1 /player/lua
parent548ef07864f3e1a40f731b2643f037435ceae46d (diff)
downloadmpv-7f91e2684e8600c45512e36f03aadff0b825a1b0.tar.bz2
mpv-7f91e2684e8600c45512e36f03aadff0b825a1b0.tar.xz
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.
Diffstat (limited to 'player/lua')
-rw-r--r--player/lua/defaults.lua4
1 files changed, 4 insertions, 0 deletions
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 {}