diff --git a/src/dbus_mpris.rs b/src/dbus_mpris.rs index 5e5ee9b1..6dc83003 100644 --- a/src/dbus_mpris.rs +++ b/src/dbus_mpris.rs @@ -153,7 +153,9 @@ async fn create_dbus_server( panic!("Lost connection to D-Bus: {}", err); }); - conn.request_name("org.mpris.MediaPlayer2.spotifyd", false, true, true) + // 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) .await .expect("Failed to register dbus player name");