To test: in a Wayland session, run mpv under a tool that sets WAYLAND_SOCKET, like waypipe with the --oneshot flag, or using the attached test script: wldisplaytosocket.py.txt. With this PR, ./wldisplaytosocket.py mpv path/to/video should now behave the same as mpv path/to/video.
This resolves a feature request that I made, in https://github.com/mpv-player/mpv/issues/15330 ; the issue gives more background and motivation.
To test: in a Wayland session, run mpv under a tool that sets WAYLAND_SOCKET, like
waypipe
with the--oneshot
flag, or using the attached test script: wldisplaytosocket.py.txt. With this PR,./wldisplaytosocket.py mpv path/to/video
should now behave the same asmpv path/to/video
.