access: support new "default" pipewire.access value

The "default" access is used for normal clients, in the use case where
Pipewire server will not assign permissions itself but leaves it to the
session manager. In this use case only session manager has
"unrestricted".

Make "default" equal to "unrestricted" in the default access
configuration.
This commit is contained in:
Pauli Virtanen
2023-10-11 23:13:54 +03:00
parent 7f495b63eb
commit 7a369b70dc
2 changed files with 12 additions and 0 deletions

View File

@@ -40,4 +40,14 @@ wireplumber.settings = {
default_permissions = "rx" default_permissions = "rx"
} }
} }
{
matches = [
{
pipewire.access = "default"
}
]
update-props = {
default_permissions = "all"
}
}
] ]

View File

@@ -15,6 +15,8 @@ function getDefaultPermissions (properties)
return "all" return "all"
elseif pw_access == "flatpak" or pw_access == "restricted" then elseif pw_access == "flatpak" or pw_access == "restricted" then
return "rx" return "rx"
elseif pw_access == "default" then
return "all"
end end
return nil return nil