mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-01-02 07:10:10 +01:00
14 lines
359 B
Lua
14 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()
|