]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsa-info.sh: add PipeWire daemon detection
authorJaroslav Kysela <perex@perex.cz>
Fri, 5 Mar 2021 17:20:55 +0000 (18:20 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 5 Mar 2021 17:21:43 +0000 (18:21 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsa-info/alsa-info.sh

index cd81acf38e3486731e4f5ddefc91c54e964075dc..0ef6478625affd146be174297a71ffc614267c3a 100755 (executable)
@@ -425,6 +425,7 @@ get_alsa_library_version
 ALSA_UTILS_VERSION=$(amixer -v | awk '{ print $3 }')
 
 ESDINST=$(command -v esd)
+PWINST=$(command -v pipewire)
 PAINST=$(command -v pulseaudio)
 ARTSINST=$(command -v artsd)
 JACKINST=$(command -v jackd)
@@ -555,6 +556,13 @@ echo "" >> $FILE
 echo "!!Sound Servers on this system" >> $FILE
 echo "!!----------------------------" >> $FILE
 echo "" >> $FILE
+if [[ -n $PWINST ]];then
+[[ $(pgrep '^(.*/)?pipewire$') ]] && PWRUNNING="Yes" || PWRUNNING="No"
+echo "PipeWire:" >> $FILE
+echo "      Installed - Yes ($PWINST)" >> $FILE
+echo "      Running - $PWRUNNING" >> $FILE
+echo "" >> $FILE
+fi
 if [[ -n $PAINST ]];then
 [[ $(pgrep '^(.*/)?pulseaudio$') ]] && PARUNNING="Yes" || PARUNNING="No"
 echo "Pulseaudio:" >> $FILE