mirror of
https://gitlab.freedesktop.org/pipewire/helvum
synced 2026-03-15 03:26:10 +08:00
pw: Set media.category property to manager
This will make the session manager give Helvum full permissions even when used from flatpak or otherwise restricted, so that we can always change the graph even if permissions become more restricted in the future.
This commit is contained in:
committed by
Tom Wagner
parent
b983ade736
commit
5d4931b418
@@ -65,7 +65,9 @@ pub(super) fn thread_main(
|
||||
|
||||
while !is_stopped.get() {
|
||||
// Try to connect
|
||||
let core = match context.connect(None) {
|
||||
let core = match context.connect(Some(properties! {
|
||||
"media.category" => "Manager"
|
||||
})) {
|
||||
Ok(core) => Rc::new(core),
|
||||
Err(_) => {
|
||||
if !is_connecting {
|
||||
|
||||
Reference in New Issue
Block a user