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

player: add mpv:// protocol to open safe protocols #15898

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kasper93
Copy link
Contributor

This is useful to run mpv from URL handler. Can be used to start mpv from you web browser or anything that would trigger url handler for given protocol.

Current solutions to run mpv in such context are to spawn IPC proxy and run mpv when requested, but this is in most cases not necessary.

Currently the protocol is added in mpv.desktop. Windows related registration will follow in future changes.

This is useful to run mpv from URL handler. Can be used to start mpv
from you web browser or anything that would trigger url handler for
given protocol.

Current solutions to run mpv in such context are to spawn IPC proxy and
run mpv when requested, but this is in most cases not necessary.

Currently the protocol is added in mpv.desktop. Windows related
registration will follow in future changes.
@kasper93
Copy link
Contributor Author

kasper93 commented Feb 17, 2025

This is likely security consideration of running arbitrary file, from handler. Needs to be evaluated.

Copy link

Download the artifacts for this pull request:

Windows
macOS

@guidocella
Copy link
Contributor

#7985

@kasper93 kasper93 marked this pull request as draft February 17, 2025 22:54
@kasper93
Copy link
Contributor Author

As discussed on IRC, I will make this allow only "safe" protocols to open. Which is already status quo with ytdl:// protocol.

@kasper93 kasper93 changed the title player: add mpv:// protocol player: add mpv:// safe protocol Feb 17, 2025
@kasper93 kasper93 changed the title player: add mpv:// safe protocol player: add mpv:// protocol to run safe protocols Feb 17, 2025
@kasper93 kasper93 changed the title player: add mpv:// protocol to run safe protocols player: add mpv:// protocol to open safe protocols Feb 17, 2025
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