Skip to content

Commit a121a90

Browse files
authored
Use .nofail before loading user configuration in system.pa
1 parent c358f40 commit a121a90

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

rootfs/etc/pulse/system.pa

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
# This startup script is used only if PulseAudio is started in system
1919
# mode.
2020

21+
# Allow overriding the default configuration by users as a last-resort option
2122
.ifexists /data/override.pa
2223
.include /data/override.pa
2324
.else
25+
2426
### Automatically restore the volume of streams and devices
2527
load-module module-device-restore
2628
load-module module-stream-restore
@@ -50,6 +52,12 @@ load-module module-always-sink
5052
load-module module-position-event-sounds
5153
.endif
5254

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

0 commit comments

Comments
 (0)