music-assistant-server

Branch:dev-lidarr-plugin

Commit Details

Set Home for PulseAudio (#6190)

# What does this implement/fix?

PulseAudio (which is run as part of the Spotify Soloist setup and
possibly other places as well) writes a cookie out to the user's HOME
directory. When music-assistant is run as a non-root container, this
will fail if HOME isn't set to the data directory as it doesn't have
permissions to write to the default HOME (without this change).

**Related issue (if applicable):**

N/A

## Types of changes

<!--
Tick exactly one box. CI (.github/workflows/pr-labels.yaml) derives
the label from the ticked box and applies it automatically; the
release-notes generator uses that same label to slot this change
into the next release notes.
-->

- [x] Bugfix (non-breaking change which fixes an issue) — `bugfix`
- [ ] New feature (non-breaking change which adds functionality) —
`new-feature`
- [ ] Enhancement to an existing feature — `enhancement`
- [ ] New music/player/metadata/plugin provider — `new-provider`
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected) — `breaking-change`
- [ ] Refactor (no behaviour change) — `refactor`
- [ ] Documentation only — `documentation`
- [ ] Maintenance / chore — `maintenance`
- [ ] CI / workflow change — `ci`
- [ ] Dependencies bump — `dependencies`

## Checklist

- [x] The code change is tested and works locally.
- [x] `pre-commit run --all-files` passes.
- [x] `pytest` passes, and tests have been added/updated under `tests/`
where applicable.
- [ ] (N/A) For changes to shared models, the companion PR in
`music-assistant/models` is linked.
- [ ] (N/A) For changes affecting the UI, the companion PR in
`music-assistant/frontend` is linked.
- [x] I have read and complied with the project's [AI
Policy](https://github.com/music-assistant/.github/blob/main/AI_POLICY.md)
for any AI-assisted contributions.
- [ ] (N/A) I have [raised a PR against the documentation
repository](https://github.com/music-assistant/music-assistant.io/blob/main/CONTRIBUTING.md)
targeting the main or beta branch as appropriate.
Forgejo

Author

Aaron U'Ren<[email protected]>
September 3, 2026 at 02:08 PM UTC

Committer

Marvin Schenkel<[email protected]>
September 4, 2026 at 07:55 AM UTC
6additions
1deletions
2files changed

Parent commits

Changes

2 files
+6-1

Changed Files (2)

music_assistant/helpers/
tests/helpers/
music_assistant/helpers/pulse_capture.py
+3-1
tests/helpers/test_pulse_capture.py
+3