Skip to content

Commit

Permalink
Unload module vchan if no domid is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
fepitre committed May 10, 2024
1 parent 4d8221f commit 36ba9e4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions rootfs/qubes.SetAudioVM
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@

set -e

# Default to dom0
# Default to dom0 if called with empty arg
domid="${1:-0}"

export PULSE_SERVER=unix:/tmp/pa.sock

pactl unload-module module-vchan-sink
pactl load-module module-vchan-sink domid="$domid"

pactl set-default-sink vchan_output
pactl set-default-source vchan_input
if [ "$domid" -ge 0 ]; then
pactl load-module module-vchan-sink domid="$domid"
pactl set-default-sink vchan_output
pactl set-default-source vchan_input
fi

0 comments on commit 36ba9e4

Please sign in to comment.