summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorrr- <rr-@sakuya.pl>2016-09-20 20:32:16 +0200
committerwm4 <wm4@nowhere>2016-09-21 12:43:21 +0200
commitf66f0b34c8aabe8883a85b46d42e5893d633c81c (patch)
tree1108c5a53568db934fe01887f5d3e67f6acabcee /DOCS
parentaf6126adbe61fb2b6cc780025246d33df93072e6 (diff)
downloadmpv-f66f0b34c8aabe8883a85b46d42e5893d633c81c.tar.bz2
mpv-f66f0b34c8aabe8883a85b46d42e5893d633c81c.tar.xz
lua: expose subprocess_detached
Diffstat (limited to 'DOCS')
-rw-r--r--DOCS/man/lua.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/DOCS/man/lua.rst b/DOCS/man/lua.rst
index d8252a2dd5..cb32baabc1 100644
--- a/DOCS/man/lua.rst
+++ b/DOCS/man/lua.rst
@@ -635,6 +635,19 @@ strictly part of the guaranteed API.
In all cases, ``mp.resume_all()`` is implicitly called.
+``utils.subprocess_detached(t)``
+ Runs an external process and detaches it from mpv's control.
+
+ The parameter ``t`` is a table. The function reads the following entries:
+
+ ``args``
+ Array of strings of the same semantics as the ``args`` used in the
+ ``subprocess`` function.
+
+ The function returns ``nil``.
+
+ In all cases, ``mp.resume_all()`` is implicitly called.
+
``utils.parse_json(str [, trail])``
Parses the given string argument as JSON, and returns it as a Lua table. On
error, returns ``nil, error``. (Currently, ``error`` is just a string