Skip to content

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ungive
Copy link

@ungive ungive commented Jun 19, 2025

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)?
  • If this is a new formula, does it pass 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:

A piece of software that was recently released to great fanfare—everyone is talking about it on Twitter and Hacker News and we’ve even gotten multiple premature submissions for it. That’d be a clear case of an app that will reach the threshold in no time so that’s a PR we won’t close immediately (but may wait to merge).

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 what media-control does and what mediaremote-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:

On a side note, the mediaremote-adapter library that media-control uses is also used by and bundled with in the recently merged music-presence cask, albeit an older version: Homebrew/homebrew-cask#216446

I hope this insight helps in deciding whether merging is a viable option for you.

@github-actions github-actions bot added new formula PR adds a new formula to Homebrew/homebrew-core macos-only Formula depends on macOS labels Jun 19, 2025
Copy link
Contributor

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.

@github-actions github-actions bot added the autosquash Automatically squash pull request commits according to Homebrew style. label Jun 19, 2025
@chenrui333 chenrui333 added the CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. label Jun 19, 2025
@ungive
Copy link
Author

ungive commented Jun 19, 2025

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosquash Automatically squash pull request commits according to Homebrew style. CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. macos-only Formula depends on macOS new formula PR adds a new formula to Homebrew/homebrew-core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants