From 5270c3a3abcc5f9fec2695804e005299d5badaf7 Mon Sep 17 00:00:00 2001 From: Klayton Smith II Date: Wed, 21 Sep 2022 12:05:03 -0400 Subject: [PATCH] made unique dbus names default behavior --- src/dbus_mpris.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dbus_mpris.rs b/src/dbus_mpris.rs index 66a8a68d..98bc7677 100644 --- a/src/dbus_mpris.rs +++ b/src/dbus_mpris.rs @@ -166,7 +166,8 @@ async fn create_dbus_server( // TODO: The first `true` allows us to replace orphaned dbus servers from previous sessions // later. We should instead properly release the name when the session ends. - conn.request_name("org.mpris.MediaPlayer2.spotifyd", true, true, true) + let path = format!("org.mpris.MediaPlayer2.spotifyd.instance{b}", b = std::process::id()); + conn.request_name(path, true, true, true) .await .expect("Failed to register dbus player name");