summaryrefslogtreecommitdiffstats
path: root/DOCS/man/input.rst
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-07-17 01:36:33 +0200
committerwm4 <wm4@nowhere>2020-07-20 21:02:17 +0200
commit0e7f53a5bc76cc3f042791b5f8923563842224a3 (patch)
tree45f9991c00a80151ea881b01434e04f21d4ae0c1 /DOCS/man/input.rst
parent0279a44d93a378fbdff393d6568a691817f83518 (diff)
downloadmpv-0e7f53a5bc76cc3f042791b5f8923563842224a3.tar.bz2
mpv-0e7f53a5bc76cc3f042791b5f8923563842224a3.tar.xz
lua: add mp.get_env_list() function
Because Lua is too stupid to provide this directly, and I sort of need it.
Diffstat (limited to 'DOCS/man/input.rst')
-rw-r--r--DOCS/man/input.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/DOCS/man/input.rst b/DOCS/man/input.rst
index cf1bb5b4e9..eee5ba8614 100644
--- a/DOCS/man/input.rst
+++ b/DOCS/man/input.rst
@@ -539,6 +539,9 @@ Remember to quote string arguments in input.conf (see `Flat command syntax`_).
useless.) The format of the list is as in the ``execle()`` syscall. Each
string item defines an environment variable as in ``NANME=VALUE``.
+ On Lua, you may use ``utils.get_env_list()`` to retrieve the current
+ environment if you e.g. simply want to add a new variable.
+
The command returns the following result (as ``MPV_FORMAT_NODE_MAP``):
``status`` (``MPV_FORMAT_INT64``)