Skip to content

Commit

Permalink
[tui] Return N/A if pactl not found
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Nov 21, 2023
1 parent 867c520 commit 78bb97e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ function detect_sound() {
export PULSE_SERVER="$PULSE_SOCKET_WSL2"
SOUND_SERVER="$(pactl info | awk -F":" '$1 ~ /Server Name/ { print $2 }' | sed 's/^ *//')"
export SOUND_SERVER
else
SOUND_SERVER="N/A"
fi
# Looking for strictly for pipepire process
elif [ "$(pgrep -a -f "pipewire$" | awk -F"/" '{ print $NF }' 2>>"$LOG_FILE")" == "pipewire" ]; then
Expand Down

0 comments on commit 78bb97e

Please sign in to comment.