Connect to system_capture not working

Hey everyone,

i’m a little stuck here. I had a script that disconnects the audio inputs and then connects to a specific input. This worked in windows until Ardour 8 (didn’t check windows Ardour 9). Now on Ardour 9 and Linux (pipewire) the disconnect works but the connect fails.

I did the research in the available Lua scripts but it seems i’m missing something. Any help appreciated.

code snippet from the script:

    inputchannel = "system_capture_2"

    sel = Editor:get_selection ()
    for route in sel.tracks:routelist ():iter () do
        local current_port = route:input():audio(0)
        current_port:disconnect_all()
        current_port:connect(inputchannel)
    end

Update: I just discovered, if i put the specific full port name it works.

inputchannel = "Scarlett 2i2 USB-67:capture_AUX1"

So i guess its not an Ardour issue but Pipewire doesn’t work well with the “system_capture” labeling?!? I could work with that work around but still interested why system_capture doesn’t do anymore.