Skip to main content
Topic: artix-pipewire-launcher bugfix (owned by pipewire package) (Read 489 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

artix-pipewire-launcher bugfix (owned by pipewire package)

I couldn't find a proper bugtracker to report this to, so I'll just make a post here in the forums.

In the artix-pipewire-launcher script, owned by the pipewire package: on line 32 pwait should be changed to pidwait.
pwait is a bsd utility not found in artix linux, the desired program is pidwait from pgrep. I assume this is simply a typo since it is already formatted for pidwait anyways.

Current artix-pipewire-launcher restart function
Code: [Select]
restart () {
    echo "Terminating PipeWire processes ..."
    pkill -u "${USER}" -x pipewire\|wireplumber 1>/dev/null 2>&1
    pwait -u "${USER}" -x pipewire\|wireplumber
    echo "PipeWire terminated."
}

Fixed artix-pipewire-launcher restart function
Code: [Select]
restart () {
    echo "Terminating PipeWire processes ..."
    pkill -u "${USER}" -x pipewire\|wireplumber 1>/dev/null 2>&1
    pidwait -u "${USER}" -x pipewire\|wireplumber
    echo "PipeWire terminated."
}

The other thing that I might bring up is that artix-pipewire-launcher is owned by the pipewire package, but the script also calls wireplumber; perhaps you could move the script (along with the pipewire.desktop file that calls it) to the wireplumber package. (Although it doesn't really matter that much either way, since the pipewire-media-session reference implementation is officially deprecated in favor of wireplumber; ergo practically every computer with a functional pipewire setup has wireplumber installed anyways.)