diff options
author | wm4 <wm4@nowhere> | 2014-01-07 01:06:28 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-07 01:07:52 +0100 |
commit | 2c4c912c15379ca26c976d2fdb27ff28ce546910 (patch) | |
tree | 5c6ce4d4b8e2011c78cb6d27036051dcbcea2fd7 /common/playlist.c | |
parent | 326d887a41dd2eefdc8496e218ada1a0d0379a70 (diff) | |
download | mpv-2c4c912c15379ca26c976d2fdb27ff28ce546910.tar.bz2 mpv-2c4c912c15379ca26c976d2fdb27ff28ce546910.tar.xz |
wayland: silence annoying libwayland-client message
libwayland-client contains the following code [1]:
runtime_dir = getenv("XDG_RUNTIME_DIR");
if (!runtime_dir) {
fprintf(stderr,
"error: XDG_RUNTIME_DIR not set in the environment.\n");
This means this message will unconditionally and unavoidably be printed
if XDG_RUNTIME_DIR is not set. Since mpv is a terminal program, and we
want to avoid unnecessary output, work it around by not attempting to
use wayland if this environment variable is not set.
[1] http://cgit.freedesktop.org/wayland/wayland/tree/src/wayland-client.c#n636
(cd0dccd01e16fa404e03974d30ded3aebdb1c4bc)
Diffstat (limited to 'common/playlist.c')
0 files changed, 0 insertions, 0 deletions