mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-26 01:20:05 +01:00
13 lines
359 B
Lua
13 lines
359 B
Lua
ID_ALL = 0xffffffff
|
|
|
|
clients_om = ObjectManager { Interest { type = "client",
|
|
Constraint { "pipewire.access", "=", "flatpak" },
|
|
} }
|
|
|
|
clients_om:connect("object-added", function (om, client)
|
|
local id = client["bound-id"]
|
|
Log.info(client, "Granting RX access to client " .. id)
|
|
client:update_permissions ({[ID_ALL] = "rx" })
|
|
end)
|
|
|
|
clients_om:activate()
|