wireplumber starts executing scripts before all configs are loaded
I have a different config file in /usr/local/share/wireplumber.conf.d/my-wp.conf
with a wireplumber.components
section.
Now I have a script with a hook in my-wp.conf
which must be executed before a hook (hooks.node.create-session-item) from a script defined in wireplumber.conf
When I start wireplumber I can see that my script is missing a lot of events at the beginning.
When I put my script to wireplumber.conf
and add it to policy.node
I see all events.
What I'm doing wrong? I do not want to manipulate the default wireplumber.conf
file?
my-wp.conf
file content looks like
wireplumber.components = [
...
{
name = foo/bar.lua, type = script/lua
provides = hook.node.foo-bar
}
{
type = virtual, provides = policy.custom.nodes
requires = [ hooks.node.foo-bar ]
}
...
]
wireplumber.profiles = {
main = {
policy.wv.custom.nodes = required
...
}
}