Skip to content

Commit

Permalink
[utils/common] Set PULSE_COOKIE when required
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Feb 10, 2024
1 parent d6e69bd commit 0ed0551
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function detect_sound() {
if [ -S "/run/user/${RUN_AS_UID}/pulse/native" ] && [ ! -S "$PULSE_SOCKET_WSL2" ]; then
# When running on Linux
export PULSE_SERVER="/run/user/${RUN_AS_UID}/pulse/native"
export PULSE_COOKIE="${RUN_AS_HOME}/.config/pulse/cookie"
elif [ -S "$PULSE_SOCKET_WSL2" ]; then
# When running on WSL2
export PULSE_SERVER="$PULSE_SOCKET_WSL2"
Expand Down

0 comments on commit 0ed0551

Please sign in to comment.