MPRIS V2.1 support for mpd
Python Makefile M4 Shell
Clone or download
grawity Explain why we use python-mpd2 internal APIs
Because I had already forgotten, and I wrote these...
Latest commit 1231f84 Mar 6, 2018


Join the chat at

mpDris2 provide MPRIS 2 support to mpd (Music Player Daemon).

mpDris2 is run in the user session and monitors a local or distant mpd server.


Stable release

Download the latest release at

tar zvxf mpDris2-X.X.tar.gz
cd mpDris2-X.X
./ --sysconfdir=/etc
make install (as root)

Older releases can be found at

From git

git clone git://
cd mpDris2
./ --sysconfdir=/etc
make install (as root)

Logout/login from your session. Default prefix is /usr/local.


By default, mpDris2 will try to connect to localhost:6600.

To set a different host or port copy the example configuration file /usr/[local]/share/doc/mpdris2/mpDris2.conf to ~/.config/mpDris2/mpDris2.conf.

Use the configuration to enable notifications and multimedia keys support (on the GNOME desktop).

You need also to set the music_dir option for mpDris2 to export covers paths in the MPRIS metadata.

Restart your session or mpDris2 after changing mpDris2.conf.

Sample configuration

host =
port = 6600
music_dir = /media/music/

notify = False
mmkeys = True