9 :py:class:`mpdaio.MPDClient` honors the following environment variables:
13 MPD host (:abbr:`FQDN (fully qualified domain name)`, IP, socket path or abstract socket) and password.
15 | To define a **password** set :envvar:`MPD_HOST` to "*password@host*" (password only "*password@*")
16 | For **abstract socket** use "@" as prefix : "*@socket*" and then with a password "*pass@@socket*"
17 | Regular **unix socket** are set with an absolute path: "*/run/mpd/socket*"
21 MPD port, relevant for TCP socket only
23 .. envvar:: MPD_TIMEOUT
25 socket timeout when connecting to MPD and waiting for MPD’s response (in seconds)
27 .. envvar:: XDG_RUNTIME_DIR
29 path to look for potential socket
37 * use :envvar:`MPD_HOST` environment variable if set, extract password if present,
38 * else looks for an existing file in :envvar:`${XDG_RUNTIME_DIR:-/run/}/mpd/socket`
39 * else set host to ``localhost``
42 * use :envvar:`MPD_PORT` environment variable is set
46 * use :envvar:`MPD_TIMEOUT` is set
47 * else use :py:obj:`mpdaio.CONNECTION_TIMEOUT`