Skip to content

Commit

Permalink
made unique dbus names default behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
klay2000 committed Sep 21, 2022
1 parent 7146f64 commit 5270c3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dbus_mpris.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 5270c3a

Please sign in to comment.