Skip to content

Commit f7ee629

Browse files
wyu71deepin-bot[bot]
authored andcommitted
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
1 parent 6233fdd commit f7ee629

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

misc/systemd/system/deepin-login-sound.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ After=dbus.service lightdm.service
66
[Service]
77
Type=oneshot
88
User=deepin-daemon
9+
SupplementaryGroups=audio
910
Environment=HOME=/var/lib/deepin-sound-player
1011
ExecStart=/usr/bin/dbus-send --system --print-reply --dest=org.deepin.dde.SoundThemePlayer1 /org/deepin/dde/SoundThemePlayer1 org.deepin.dde.SoundThemePlayer1.PlaySoundDesktopLogin
1112
RemainAfterExit=yes

misc/systemd/system/deepin-shutdown-sound.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Before=shutdown.target
99
[Service]
1010
Type=simple
1111
User=deepin-daemon
12+
SupplementaryGroups=audio
1213
Environment=HOME=/var/lib/deepin-sound-player
1314
ExecStart=/usr/bin/true
1415
ExecStop=/usr/lib/deepin-api/deepin-shutdown-sound

0 commit comments

Comments
 (0)