Skip to content
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

Add "global event listener" #73

Open
brownian-motion opened this issue Dec 15, 2023 · 2 comments
Open

Add "global event listener" #73

brownian-motion opened this issue Dec 15, 2023 · 2 comments

Comments

@brownian-motion
Copy link

brownian-motion commented Dec 15, 2023

I'd like to be able to listen to global events in the case that some media player blocks the Get method using AppArmor, such as snap-based Spotify. In that case, a Player cannot be found using a PlayerFinder due to an error like:

TransportError(D-Bus error: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.507" (uid=1000 pid=47907 comm="target/debug/MYAPP" label="snap.powershell.powershell (complain)") interface="org.freedesktop.DBus.Properties" member="Get" error name="(unset)" requested_reply="0" destination="org.mpris.MediaPlayer2.spotify" (uid=1000 pid=15478 comm="/snap/spotify/74/usr/share/spotify/spotify" label="snap.spotify.spotify (enforce)") (org.freedesktop.DBus.Error.AccessDenied))
@brownian-motion brownian-motion changed the title Add "global listener" Add "global event listener" Dec 15, 2023
@brownian-motion
Copy link
Author

I plan on implementing this myself and opening a PR when ready

@Mange
Copy link
Owner

Mange commented Dec 15, 2023

I wish thee well, brave traveller! :-)

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

No branches or pull requests

2 participants