pipewire/debian/patches/Don-t-automatically-start-pipewire-for-root-logins.patch

31 lines
853 B
Diff
Raw Normal View History

2024-07-25 19:20:18 +02:00
From: Simon McVittie <smcv@debian.org>
Date: Sun, 17 Jan 2021 11:40:01 +0000
Subject: Don't automatically start pipewire for root logins
Forwarded: not-needed
Closes: #979791
---
src/daemon/systemd/user/pipewire.service.in | 1 +
src/daemon/systemd/user/pipewire.socket | 1 +
2 files changed, 2 insertions(+)
--- a/src/daemon/systemd/user/pipewire.service.in
+++ b/src/daemon/systemd/user/pipewire.service.in
@@ -14,6 +14,7 @@
# After=pipewire.socket is not needed, as it is already implicit in the
# socket-service relationship, see systemd.socket(5).
Requires=pipewire.socket
+ConditionUser=!root
[Service]
LockPersonality=yes
--- a/src/daemon/systemd/user/pipewire.socket
+++ b/src/daemon/systemd/user/pipewire.socket
@@ -1,5 +1,6 @@
[Unit]
Description=PipeWire Multimedia System Sockets
+ConditionUser=!root
[Socket]
Priority=6