-
-
Notifications
You must be signed in to change notification settings - Fork 12.9k
media-control 0.2.0 (new formula) #227325
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
base: main
Are you sure you want to change the base?
Conversation
Thanks for contributing to Homebrew! 🎉 It looks like you're having trouble with a CI failure. See our contribution guide for help. You may be most interested in the section on dealing with CI failures. You can find the CI logs in the Checks tab of your pull request. |
I've released a new version, v0.4.0. I would integrate it into this PR, but I don't want to interrupt the review process, in case the version is relevant for that. Let me know though, if I can just go ahead and update the PR anyway, that might save you another pull request later (in case this PR is even accepted). Changes since making this PR:
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I'd love some feedback on this. The repository has 15 stars now, but it's merely a small CLI wrapper around the main project which has 43 stars today: https://github.com/ungive/mediaremote-adapter (see the submodule inclusion in the repository). |
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingHOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>
)?brew audit --new <formula>
?I've just created this tool within the last couple of days, but regarding the "notability threshold" (Acceptable Casks), I think my tool may qualify to fall under the following exception:
While the tool is located at ungive/media-control, the projected started over at ungive/mediaremote-adapter.
Since macOS 15.4 media control and media detection has been broken by Apple and formulas like nowplaying-cli no longer work: kirtan-shah/nowplaying-cli#28
This is because Apple has added entitlement checks for the use of the MediaRemote private framework which makes it impossible to directly use it in an application. You can still use it indirectly by loading it in a separate process that passes these new entitlement checks, which is e.g. the case with
/usr/bin/perl
. That's exactly whatmedia-control
does and whatmediaremote-adapter
implements (which is the main component of this formula,media-control
is just a small wrapper script written in Perl).To my knowledge I'm the first person to discover this workaround and people got very excited when I shared the news:
Date of publishment: ungive/mediaremote-adapter@1af927f
On a side note, the
mediaremote-adapter
library thatmedia-control
uses is also used by and bundled with in the recently mergedmusic-presence
cask, albeit an older version: Homebrew/homebrew-cask#216446I hope this insight helps in deciding whether merging is a viable option for you.