From 7644f6589b5b6b3e14c2e8b57cf61d90da1c88cc Mon Sep 17 00:00:00 2001 From: Wang Yu Date: Wed, 10 Sep 2025 16:08:46 +0800 Subject: [PATCH] fix: add audio group permission to login and shutdown sound services - Added SupplementaryGroups=audio to ensure proper audio device access for login and shutdown sounds Log: add audio group permission to login and shutdown sound services pms: BUG-333303 --- misc/systemd/system/deepin-login-sound.service | 1 + misc/systemd/system/deepin-shutdown-sound.service | 1 + 2 files changed, 2 insertions(+) diff --git a/misc/systemd/system/deepin-login-sound.service b/misc/systemd/system/deepin-login-sound.service index 150cfd1..cfbf775 100644 --- a/misc/systemd/system/deepin-login-sound.service +++ b/misc/systemd/system/deepin-login-sound.service @@ -6,6 +6,7 @@ After=dbus.service lightdm.service [Service] Type=oneshot User=deepin-daemon +SupplementaryGroups=audio Environment=HOME=/var/lib/deepin-sound-player ExecStart=/usr/bin/dbus-send --system --print-reply --dest=org.deepin.dde.SoundThemePlayer1 /org/deepin/dde/SoundThemePlayer1 org.deepin.dde.SoundThemePlayer1.PlaySoundDesktopLogin RemainAfterExit=yes diff --git a/misc/systemd/system/deepin-shutdown-sound.service b/misc/systemd/system/deepin-shutdown-sound.service index c4b519b..3679300 100644 --- a/misc/systemd/system/deepin-shutdown-sound.service +++ b/misc/systemd/system/deepin-shutdown-sound.service @@ -9,6 +9,7 @@ Before=shutdown.target [Service] Type=simple User=deepin-daemon +SupplementaryGroups=audio Environment=HOME=/var/lib/deepin-sound-player ExecStart=/usr/bin/true ExecStop=/usr/lib/deepin-api/deepin-shutdown-sound