Closed EvanSunde closed 3 months ago
it's an mpris widtget not mpd widget there's mpd-mpris which sounds like something that would help
I do have that installed
mpd control are working and music names are also shown but there is no control window when i click on it
Tried using mpris2 and still no window control for mpd, but there was notification everytime next music played in mpris2.
also it seems 2 of the system monitor are hidden when mpris detect any music player
when no music playing
when any music starts playing
in .config/ags/modules/indicators/musiccontrol.js
function isRealPlayer(player) { return ( // Remove unecessary native buses from browsers if there's plasma integration !(hasPlasmaIntegration && player.busName.startsWith('org.mpris.MediaPlayer2.firefox')) && !(hasPlasmaIntegration && player.busName.startsWith('org.mpris.MediaPlayer2.chromium')) && // playerctld just copies other buses and we don't need duplicates !player.busName.startsWith('org.mpris.MediaPlayer2.playerctld') // && // Non-instance mpd bus // !player.busName.endsWith('.mpd') ); }
commenting
!player.busName.endsWith('.mpd')
solved the problem
dont forget to remove the && before that.
for what this caused it seems when you run mpd-mpris from systemctl it will return as in dbus
org.mpris.MediaPlayer2.mpd
which caused it to not show it that why there was no window control popup
i can't remember why i had that there, but i guess i'll remove that
hmmm will it work if you change that line to this
!(player.busName.endsWith('.mpd') && !player.busName.endsWith('MediaPlayer2.mpd'))
yes it does work with that
The issue
There is no Control window for mpd, but the control window of firefox and other music player opens just fine