Closed alansartorio closed 1 year ago
The problem comes from using contains($streamIds) because if there's no initial nodes, it ends up being contains(), and that causes an error. The line that causes it is: https://github.com/IceDBorn/pipewire-screenaudio/blob/8d84a6ec28cf0fbc4b58befa53453c0b6cee41a9/native/connector/connect-and-monitor.sh#L39
contains($streamIds)
contains()
The error produced by jq is:
jq: error: syntax error, unexpected ')' (Unix shell quoting issues?) at <top-level>, line 1: [ .[] | select(.type == "PipeWire:Interface:Port") | select(.info.direction == "output") | select(.info.props["node.id"] | contains()) ]
The problem comes from using
contains($streamIds)
because if there's no initial nodes, it ends up beingcontains()
, and that causes an error. The line that causes it is: https://github.com/IceDBorn/pipewire-screenaudio/blob/8d84a6ec28cf0fbc4b58befa53453c0b6cee41a9/native/connector/connect-and-monitor.sh#L39The error produced by jq is: