From f66f0b34c8aabe8883a85b46d42e5893d633c81c Mon Sep 17 00:00:00 2001 From: rr- Date: Tue, 20 Sep 2016 20:32:16 +0200 Subject: lua: expose subprocess_detached --- DOCS/man/lua.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'DOCS/man') 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 -- cgit v1.2.3