Skip to content

fix: reload user manager after purging mpDris2 - #80

Closed
b0bbywan wants to merge 1 commit into
mainfrom
fix/mpd2mpris-stale-unit
Closed

fix: reload user manager after purging mpDris2#80
b0bbywan wants to merge 1 commit into
mainfrom
fix/mpd2mpris-stale-unit

Conversation

@b0bbywan

Copy link
Copy Markdown
Owner

Upgrading from a release predating the mpd2mpris rename purges the mpdris2 package, but the user manager keeps the removed unit loaded, so its BusName reservation on org.mpris.MediaPlayer2.mpd survives. Enabling mpd2mpris.service then fails with "Two services allocated for the same bus name".

Reload the user manager right after the purge, only when it actually removed something and only in live mode. Handlers cannot cover this: they flush at the end of the play, long after the enable task.

Reported on a Pi B+ upgrading 2026.6.0b2 to 2026.7.0rc1.

Claude-Session: https://claude.ai/code/session_01FEEqytQ7DM8cMuoZ8LHVHV

Upgrading from a release predating the mpd2mpris rename purges the mpdris2
package, but the user manager keeps the removed unit loaded, so its BusName
reservation on org.mpris.MediaPlayer2.mpd survives. Enabling mpd2mpris.service
then fails with "Two services allocated for the same bus name".

Reload the user manager right after the purge, only when it actually removed
something and only in live mode. Handlers cannot cover this: they flush at the
end of the play, long after the enable task.

Reported on a Pi B+ upgrading 2026.6.0b2 to 2026.7.0rc1.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEEqytQ7DM8cMuoZ8LHVHV
@b0bbywan b0bbywan closed this Jul 24, 2026
@b0bbywan
b0bbywan deleted the fix/mpd2mpris-stale-unit branch August 10, 2026 10:39
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

Successfully merging this pull request may close these issues.

1 participant