diff --git a/src/daemon/pipewire.conf.in b/src/daemon/pipewire.conf.in index b8ba514f6..697bf094d 100644 --- a/src/daemon/pipewire.conf.in +++ b/src/daemon/pipewire.conf.in @@ -47,6 +47,9 @@ context.properties = { # keys checked below to disable module loading module.x11.bell = true + # enables autoloading of access module, when disabled an alternative + # access module needs to be loaded. + module.access = true } context.spa-libs = { @@ -152,6 +155,7 @@ context.modules = [ # access.force permission. #access.force = flatpak } + condition = [ { module.access = true } ] } # Makes a factory for wrapping nodes in an adapter with a @@ -290,12 +294,14 @@ context.exec = [ # but it is better to start it as a systemd service. # Run the session manager with -h for options. # - @sm_comment@{ path = "@session_manager_path@" args = "@session_manager_args@" } + @sm_comment@{ path = "@session_manager_path@" args = "@session_manager_args@" + @sm_comment@ condition = [ { exec.session-manager = null } { exec.session-manager = true } ] } # # You can optionally start the pulseaudio-server here as well # but it is better to start it as a systemd service. # It can be interesting to start another daemon here that listens # on another address with the -a option (eg. -a tcp:4713). # - @pulse_comment@{ path = "@pipewire_path@" args = "-c pipewire-pulse.conf" } + @pulse_comment@{ path = "@pipewire_path@" args = "-c pipewire-pulse.conf" + @pulse_comment@ condition = [ { exec.pipewire-pulse = null } { exec.pipewire-pulse = true } ] } ]