void-packages/srcpkgs/pipewire/patches/autostart-media-session.patch
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: convert patches to -Np1
* par is kept at -Np0

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

16 lines
784 B
Diff

Upstream's config does not autostart pipewire-media-session anymore, which
is an essential component. It's not easy to start it externally in a script
since it needs the pipewire socket up, and Void doesn't have a mechanism to
ensure it (systemd socket activation).
--- a/src/daemon/pipewire.conf.in 2021-03-18 17:45:02.025992827 +0100
+++ b/src/daemon/pipewire.conf.in 2021-03-18 17:47:17.606999440 +0100
@@ -204,7 +204,7 @@
# but it is better to start it as a systemd service.
# Run the session manager with -h for options.
#
- @comment@{ path = "@media_session_path@" args = "" }
+ { path = "@media_session_path@" args = "" }
#
# You can optionally start the pulseaudio-server here as well
# but it is better to start it as a systemd service.