Skip to content

Commit

Permalink
Add support for snapped pipewire
Browse files Browse the repository at this point in the history
A snapped pipewire requires being able to create the pulse
folder inside the global XDG_RUNTIME_DIR folder (not the snap
own folder). Also, it requires to be able to create both the
pipewire-[0-9]-manager and its lock file.

This patch adds that capability to the audio-playback slot;
thus, a snap offering that slot will be able to create the
corresponding global sockets.
  • Loading branch information
sergio-costas committed Sep 2, 2024
1 parent 01d54ca commit 3ea3b52
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions interfaces/builtin/audio_playback.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,11 @@ owner /{,var/}run/pulse/** rwk,
owner /run/user/[0-9]*/ r,
owner /run/user/[0-9]*/pulse/ rw,
owner /run/user/[0-9]*/pulse/** rw,
# This allows to share screen in Core Desktop
owner /run/user/[0-9]*/pipewire-[0-9] rwk,
owner /run/user/[0-9]*/pipewire-[0-9]-manager rwk,
# This allows wireplumber to read the pulseaudio
# configuration if pipewire runs inside a container
Expand Down

0 comments on commit 3ea3b52

Please sign in to comment.