diff options
Diffstat (limited to 'desktop/island/privacy.sh')
| -rwxr-xr-x | desktop/island/privacy.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/island/privacy.sh b/desktop/island/privacy.sh index 9d5b360..8e70933 100755 --- a/desktop/island/privacy.sh +++ b/desktop/island/privacy.sh @@ -16,7 +16,9 @@ # pw-dump because a capturing source is told from an idle one by its node # state, which Quickshell's PwNode does not expose. -dump=$(pw-dump 2>/dev/null) +# No dump is a broken run, not "nothing is capturing": print nothing, and +# Privacy.qml keeps its last reading. +dump=$(pw-dump 2>/dev/null) || exit 1 mic=$(printf '%s' "$dump" | jq '[.[] | select(.type == "PipeWire:Interface:Node") |
