Fix MPV socket getting created in CWD by notpeelz · Pull Request #675 · Syncplay/syncplay · GitHub
Skip to content

Fix MPV socket getting created in CWD#675

Merged
Et0h merged 3 commits into
Syncplay:masterfrom
notpeelz:fix-mpv-socket-path
Apr 29, 2024
Merged

Fix MPV socket getting created in CWD#675
Et0h merged 3 commits into
Syncplay:masterfrom
notpeelz:fix-mpv-socket-path

Conversation

@notpeelz

@notpeelz notpeelz commented Apr 7, 2024

Copy link
Copy Markdown
Contributor

Fixes #674

I haven't tested on Windows or MacOS.

Comment thread syncplay/utils.py Outdated
@notpeelz notpeelz force-pushed the fix-mpv-socket-path branch 2 times, most recently from 6e94def to 0690aa1 Compare April 7, 2024 21:55
Comment thread syncplay/players/mpv.py Outdated
@notpeelz notpeelz force-pushed the fix-mpv-socket-path branch 3 times, most recently from f6fec7c to 7280bb7 Compare April 7, 2024 22:51
@notpeelz notpeelz force-pushed the fix-mpv-socket-path branch from 7280bb7 to df33187 Compare April 8, 2024 18:12
@daniel-123

Copy link
Copy Markdown
Contributor

@notpeelz

notpeelz commented Apr 27, 2024

Copy link
Copy Markdown
Contributor Author

I could pass the socket path via the ipc_socket constructor parameter instead and leave the vendored library unmodified.

Edit: I updated the PR. Let me know if there's anything else.

@notpeelz notpeelz force-pushed the fix-mpv-socket-path branch from df33187 to 1f1cbc6 Compare April 27, 2024 21:33
@notpeelz notpeelz force-pushed the fix-mpv-socket-path branch from 1f1cbc6 to 6c5e3a1 Compare April 27, 2024 21:45
@daniel-123 daniel-123 self-assigned this Apr 28, 2024
@daniel-123 daniel-123 self-requested a review April 28, 2024 09:44
@Et0h Et0h self-requested a review April 29, 2024 17:49

@Et0h Et0h left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I have tested in Windows by confirming that mpv works and by using using Power Shell and [System.IO.Directory]::GetFiles("\\.\\pipe\\") to confirm that by default it will create a pipe along the lines of \\.\\pipe\\syncplay-mpv-94244417144407 but that if you add a player argument such as input-ipc-server=\\.\pipe\foobar it will also create a pipe of the specified name.

@Et0h

Et0h commented Apr 29, 2024

Copy link
Copy Markdown
Contributor

@Et0h Et0h closed this Apr 29, 2024
@Et0h Et0h reopened this Apr 29, 2024
@Et0h Et0h merged commit 887131e into Syncplay:master Apr 29, 2024
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.

mpvSyncplaySocket created in $HOME

3 participants