summaryrefslogtreecommitdiffstats
path: root/debian/patches/Don-t-automatically-start-pipewire-for-root-logins.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/Don-t-automatically-start-pipewire-for-root-logins.patch')
-rw-r--r--debian/patches/Don-t-automatically-start-pipewire-for-root-logins.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/patches/Don-t-automatically-start-pipewire-for-root-logins.patch b/debian/patches/Don-t-automatically-start-pipewire-for-root-logins.patch
new file mode 100644
index 0000000..833c971
--- /dev/null
+++ b/debian/patches/Don-t-automatically-start-pipewire-for-root-logins.patch
@@ -0,0 +1,30 @@
+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 Socket
++ConditionUser=!root
+
+ [Socket]
+ Priority=6