wireplumber/src/scripts/access/access-flatpak.lua

14 lines
359 B
Lua
Raw Normal View History

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()