Skip to content

Commit 36b60a4

Browse files
committed
Use .nofail before loading user configuration in system.pa
1 parent 627362b commit 36b60a4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

rootfs/etc/pulse/system.pa

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ load-module module-always-sink
4646
### Enable positioned event sounds
4747
load-module module-position-event-sounds
4848

49-
.ifexists /data/custom.pa
49+
# Load additional user configuration, if present
50+
#
51+
# Using nofail has two effects here:
52+
# 1) Causes PulseAudio to log a message at startup if the user configuration
53+
# is not present to increase visible of the corresponding configuration
54+
# (cli-command.c: stat('/data/custom.pa'): No such file or directory)
55+
# 2) Means broken user command in the given file will not make PulseAudio fail
56+
.nofail
5057
.include /data/custom.pa
51-
.endif

0 commit comments

Comments
 (0)