[pulseaudio-commits] [Git][pulseaudio/pulseaudio][master] pa-info: Handle configuration files from .d directories

PulseAudio Marge Bot (@pulseaudio-merge-bot) gitlab at gitlab.freedesktop.org
Mon May 16 18:14:04 UTC 2022



PulseAudio Marge Bot pushed to branch master at PulseAudio / pulseaudio


Commits:
4f2c8ec0 by Igor V. Kovalenko at 2022-05-16T18:11:47+00:00
pa-info: Handle configuration files from .d directories

Pulseaudio reads client.conf.d/*.conf and daemon.conf.d/*.pa, print these too.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/701>

- - - - -


1 changed file:

- src/utils/pa-info


Changes:

=====================================
src/utils/pa-info
=====================================
@@ -56,6 +56,14 @@ function cmd_do {
 	echo "> $1"
 	$1
 }
+function dot_d_files {
+    local files=$1
+    if ls -d1 "$files" 2> /dev/null; then
+        for fn in $files; do
+            cmd_do "cat $fn";
+        done
+    fi
+}
 cmds=(
 	'pulseaudio_ps_do'
 	'which pulseaudio'
@@ -65,7 +73,9 @@ cmds=(
 	'pactl list'
 	'cat /etc/pulse/daemon.conf'
 	'cat /etc/pulse/client.conf'
+	'dot_d_files /etc/pulse/client.conf.d/*.conf'
 	'cat /etc/pulse/default.pa'
+	'dot_d_files /etc/pulse/default.pa.d/*.pa'
 	'cat /etc/pulse/system.pa'
 	'ls -alt /dev/snd/*'
 	'lsof /dev/snd/*'



View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/4f2c8ec002e937ab53bd016c041154bdcc49f217

-- 
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/4f2c8ec002e937ab53bd016c041154bdcc49f217
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20220516/3da78310/attachment.htm>


More information about the pulseaudio-commits mailing list