summaryrefslogtreecommitdiffstats
path: root/debian/patches/Don-t-automatically-start-pipewire-for-root-logins.patch
blob: 833c9713e312c1b7ff00bc326c1a115d42ed0ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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