This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Spotify DBUS commands as shortcuts

Tags: None
(comma "," separated)
ayr-ton
Registered Member
Posts
2
Karma
0
OS

Spotify DBUS commands as shortcuts

Sat Oct 24, 2015 8:02 pm
Hey there, lovely KDE people.

I'm using Plasma 5 and Spotify seems to not have out of the box implementation to the media keys.

So I have created keyboard shortcuts using the examples from:

https://userbase.kde.org/System_Setting ... sing_D-Bus

For example, for the PlayPause command, I have created the following shortcut:

Remote Application: org.mpris.MediaPlayer2.spotify
Remote Object: org/mpris/MediaPlayer2
Function: org.mpris.MediaPlayer2.Player.PlayPause

Also, I can run this call with success with the following command:

dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause

But it is not working at Plasma 5 shortcuts.
ayr-ton
Registered Member
Posts
2
Karma
0
OS
I have figured out the issue:

Remote Object should be: /org/mpris/MediaPlayer2 (with "/")

And restart the session.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]