media-control 0.2.0 (new formula) #227325
Open
+41
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.