mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.66k stars 2.93k forks source link

console.lua,wayland_common: also detect Wayland if WAYLAND_SOCKET set #15331

Closed mstoeckl closed 3 days ago

mstoeckl commented 4 days ago

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 as mpv path/to/video.

github-actions[bot] commented 4 days ago

Download the artifacts for this pull request:

Windows * [mpv-i686-w64-mingw32](https://nightly.link/mpv-player/mpv/actions/artifacts/2198868325.zip) * [mpv-x86_64-w64-mingw32](https://nightly.link/mpv-player/mpv/actions/artifacts/2198873554.zip) * [mpv-x86_64-windows-msvc](https://nightly.link/mpv-player/mpv/actions/artifacts/2198882360.zip)
macOS * [mpv-macos-13-intel](https://nightly.link/mpv-player/mpv/actions/artifacts/2198866860.zip) * [mpv-macos-14-arm](https://nightly.link/mpv-player/mpv/actions/artifacts/2198866132.zip) * [mpv-macos-15-arm](https://nightly.link/mpv-player/mpv/actions/artifacts/2198866041.zip)