Skip to content

run: Try using /var/run/pulse/native as PulseAudio socket - #4057

Merged
alexlarsson merged 1 commit into
flatpak:masterfrom
smcv:system-wide-pulseaudio
Jan 12, 2021
Merged

alexlarsson merged 1 commit into
flatpak:masterfrom
smcv:system-wide-pulseaudio

Conversation

@smcv

@smcv smcv commented Jan 7, 2021

Copy link
Copy Markdown
Collaborator

This brings us closer to matching what happens in libpulse.so.0.
This path is the default for a system-wide PulseAudio instance, which
is discouraged on non-embedded systems but is easy to check for.
In particular, SteamOS, an "appliance"-style gaming OS, uses this
socket.

Adapted from Steam's pressure-vessel container tool, which reuses
various Flatpak modules, including this function.

@smcv

smcv commented Jan 7, 2021

Copy link
Copy Markdown
Collaborator Author

This is a slightly cleaned-up version of what pressure-vessel does. Marked as a draft for now, because I haven't yet checked that it genuinely works on SteamOS (but it should).

This brings us closer to matching what happens in libpulse.so.0.
This path is the default for a system-wide PulseAudio instance, which
is discouraged on non-embedded systems but is easy to check for.
In particular, SteamOS, an "appliance"-style gaming OS, uses this
socket.

Adapted from Steam's pressure-vessel container tool, which reuses
various Flatpak modules, including this function.

Signed-off-by: Simon McVittie <[email protected]>
@smcv
smcv force-pushed the system-wide-pulseaudio branch from 7efba58 to c933a99 Compare January 7, 2021 19:13
@smcv
smcv marked this pull request as ready for review January 7, 2021 19:28
@alexlarsson
alexlarsson merged commit eaa6598 into flatpak:master Jan 12, 2021
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.

2 participants