vhost-device-sound: test dbus-daemon from PATH

On my NixOS system, dbus-daemon is not at /usr/bin/dbus-daemon, but on
systems where it is, it should also be in PATH.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
This commit is contained in:
Alyssa Ross 2025-11-20 14:49:30 +01:00 committed by Manos Pitsidianakis
parent 9191a0c1de
commit f310f2c121

View file

@ -36,7 +36,7 @@ pub struct DbusSession {
impl DbusSession {
pub fn new(working_dir: &Path) -> Self {
let address_prefix = format!("unix:path={}", working_dir.join("dbus").display());
let mut child = Command::new("/usr/bin/dbus-daemon")
let mut child = Command::new("dbus-daemon")
.args(["--session", "--address", &address_prefix, "--print-address"])
.env("DBUS_VERBOSE", "1")
.stdout(Stdio::piped())