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

MPRIS example exposes incorrect validation #27

Closed
miawgogo opened this issue May 30, 2019 · 1 comment
Closed

MPRIS example exposes incorrect validation #27

miawgogo opened this issue May 30, 2019 · 1 comment

Comments

@miawgogo
Copy link

miawgogo commented May 30, 2019

I was messing about with the MPRIS example on my KDE based desktop and discovered that KDE's browser intergration was casusing issues with this libary as its bus name is org.mpris.MediaPlayer2.plasma-browser-integration and is causing this error

Error: Invalid interface name: org.mpris.MediaPlayer2.plasma-browser-integration
    at assertInterfaceNameValid (/home/iloosley/node_modules/dbus-next/lib/validators.js:108:11)
    at new ProxyObject (/home/iloosley/node_modules/dbus-next/lib/client/proxy-object.js:35:5)
    at MessageBus.getProxyObject (/home/iloosley/node_modules/dbus-next/lib/bus.js:162:15)
    at main (/home/iloosley/mpris.js:111:23)
    at processTicksAndRejections (internal/process/task_queues.js:86:5)

image

This appears to be because the library is incorrectly validating the bus name as an interface. MPRIS player addresses are bus names, interfaces are things like

org.mpris.MediaPlayer2.Player
org.mpris.MediaPlayer2.TrackList
org.mpris.MediaPlayer2.Playlists
@acrisci
Copy link
Member

acrisci commented May 30, 2019

👍

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