Move mpris implementation from infinitime library to itd, where it really belongs #41
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "FloralExMachina/itd:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR Copys the Mpris implementation from the infinitime library and on acceptance a follow up PR to the infinitime library will remove the implementation there. The justification for this is that the library's purpose is facilitating the transmission and reception of events between a device and host, the onus is on the user of the library to take actions on recieved events. This is already reflected with the desktop notification relay, call relay, and maps, This also opens up future support for (white|black) listing players to avoid misbehaving implementors e.g chromium (and browsers based on it) or disabling the use of mpris altogether via the config, in favour listening for music button events with itctl
@ -0,0 +15,4 @@
onChangeOnce sync.Once
)
// Init makes required connections to DBis and
There's a typo here. Should be
DBus
, notDBis
Other than that, it seems good to me. I probably should've placed that in ITD in the first place, I was meaning to move it eventually but never got around to it and then forgot. Thanks for the PR.
fixed :)
Thanks, merging now