Skip to content

Commit 111271b

Browse files
authored
fix: 解决没有关机音效的问题 (#148)
因为用 Requisite= 是“硬依赖”。如果系统上没激活 sound.target(很多环境确实不会激活它),这个服务就不会在开机被拉起,结果就是 enabled 但一直 inactive (dead) Log: 去掉Requisite,改成Wants PMS: BUG-315787 Influence: 系统音效
1 parent 0dfcc46 commit 111271b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[Unit]
22
Description=Deepin shutdown sound
3-
Requisite=sound.target local-fs.target
3+
Requisite=
4+
Wants=sound.target local-fs.target
45
After=sound.target local-fs.target
56
Conflicts=shutdown.target
67
Before=shutdown.target

0 commit comments

Comments
 (0)