Skip to content

Commit

Permalink
[common] Look a file only not a socket
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Nov 21, 2023
1 parent 8129922 commit 9f2d9d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function detect_sound() {
SOUND_SERVER="PulseAudio (on PipeWire)"
fi
export SOUND_SERVER
elif [ -s "$PULSE_SOCKET_WSL2" ]; then
elif [ -e "$PULSE_SOCKET_WSL2" ]; then
# This condition is only related to WSL2 as PulseServer socket will be
# created under the /mnt/wslg/ directory.
if command -v pactl &>>"$LOG_FILE"; then
Expand Down

0 comments on commit 9f2d9d0

Please sign in to comment.