Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

mstoeckl
Copy link
Contributor

@mstoeckl mstoeckl commented Nov 17, 2024

This resolves a feature request that I made, in #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.

While most Wayland compositors provide a socket path indicated by
environment variable WAYLAND_DISPLAY, others may sometimes bequeath a
socket file descriptor specified by WAYLAND_SOCKET.
Copy link

Download the artifacts for this pull request:

Windows
macOS

Copy link
Member

@Dudemanguy Dudemanguy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems logical.

@Dudemanguy Dudemanguy merged commit 46574d4 into mpv-player:master Nov 18, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants