Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pantheraleo-7
Copy link

@pantheraleo-7 pantheraleo-7 commented Oct 16, 2025


Description:
I am working on the official IINA plugin Online Media and found out that there's no way in the plugin API to distinguish between executables having the same name on the system $PATH and IINA's executable directory - in my case - it is youtube-dl.

The JavascriptAPIUtils.findInPath searches in, both, system $PATH and IINA's executable directory (IINA.app/Contents/MacOS/).

More than overcoming this limitation of the API, I think prefixing the executable name with "iina-" to give it a specialised name is a more appropriate solution.

NOTE: (I am forced to make this PR as I need this distinction for the plugin work I am doing) I don't know the Swift language, nor libmpv. This PR could be flat out wrong and broken, and I am extremely sorry for that if that's the case. Please bear with me.

@pantheraleo-7 pantheraleo-7 force-pushed the develop branch 3 times, most recently from d4e1fd2 to 2551bc6 Compare October 16, 2025 19:06
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.

1 participant