MPDRIS2(1)
π MPDRIS2 β the manual, but make it make sense π
okay bestie, so this is the mpDris2 man page, section 1, and it's genuinely iconic. it lives in the D-Bus services corner of the manual world. let's get into it π«Ά
β¨ NAME β¨
mpDris2 β the media player interface (MPRIS2) bridge for MPD π
π SYNOPSIS π
that's it. that's the whole vibe. options only, no drama.
πΈ DESCRIPTION πΈ
so mpDris2 is an implementation of the MPRIS2 media player interface, but as a client for MPD. which means β and this is the slay part β MPRIS2 clients can control MPD and watch its track changes through a standard D-Bus interface. it's giving translator, it's giving middle girlie, it's giving bridge. π
it can also respond to multimedia keys if it's running under GNOME, and it'll send track-change notifications if python-notify is installed. not me being multi-talented πβ¨
normally you don't even run it by hand β it gets run automatically via D-Bus service activation. and on systems that follow the freedesktop.org Desktop Application Autostart Specification</>, it'll be run automatically on login. main character energy, but like, the responsible kind. π
π¦ CONFIGURATION π¦
so mpDris2 is normally configured through this file:
which, typically, is:
what goes inside that file is documented over in:
and here's the hierarchy bestie, listen up: settings in this config file can be overridden by command-line options and environment variables. so the config file is like the base layer, and the other two can just. barge in. respectfully. π
π OPTIONS π
-p PATH,--path=PATHβ sets the location of the directory that mpd reads music from, and yes it overrides the config file. the default? it uses the path from the config file, or else it tries some likely directories:XDG_MUSIC_DIRfrom the environment, orXDG_CONFIG_DIRS/user-dirs.dirs, or~/Music, or~/music. she's guessing but she's guessing strategically π-h,--helpβ shows a help message. classic. iconic. always there for you π«Ά-d,--debugβ emits debug logging messages. turn this on when you want the tea βπ
π ENVIRONMENT π
XDG_CONFIG_HOME=DIRECTORY,XDG_CONFIG_DIRS=SEARCHPATHβ used to find the configuration fileXDG_CONFIG_DIRS/mpDris2/mpDris2.conf, following the XDG Base Directory Specification. yeah. spec-compliant. we love a girlie who follows the rules πβ¨MPD_HOST=HOSTNAMEβ sets the hostname of the mpd server, overriding the configuration file. πMPD_PORT=PORTβ sets the port number of the mpd server, overriding the configuration file. πXDG_MUSIC_DIR=DIRECTORYβ used to find the default music directory, but only if it's not specified in the configuration file or as a command-line option. backup plan energy, we stan π§
π₯ SEE ALSO π₯
lowkey important reminder: the config file is the base, but command-line options and environment variables override it. don't come for me when your MPD_HOST wins over your conf file β that's the whole point bestie π
and that's the whole page!! ngl she's short but she's efficient. this was written up in September 2012, and it comes to you from the D-Bus services part of the manual β so go forth, bridge those players, and stay slay β¨ππ
π¦ where this page comes from
- debian bookworm: mpdris2 0.9.1-2 Β· GPL-3.0-or-later
- debian trixie: mpdris2 0.9.1-3 Β· GPL-3.0-or-later
- ubuntu jammy: mpdris2 0.9.1-1 Β· GPL-3.0-or-later
- ubuntu noble: mpdris2 0.9.1-2 Β· GPL-3.0-or-later
- ubuntu questing: mpdris2 0.9.1-3
- ubuntu resolute: mpdris2 0.9.1-3build1 Β· GPL-3.0-or-later
- ubuntu stonking: mpdris2 0.9.1-4 Β· GPL-3.0-or-later
- Copyright Β© 2012 Simon McVittie
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms