Use find_socket() in music player

This commit is contained in:
mars 2022-11-29 18:01:17 -07:00
parent 4007c40ba6
commit ce187a0381
1 changed files with 1 additions and 3 deletions

View File

@ -196,9 +196,7 @@ fn main() {
.to_owned();
smol::block_on(async {
let sock_dir = std::env::var("XDG_RUNTIME_DIR").expect("XDG_RUNTIME_DIR not set");
let sock_dir = Path::new(&sock_dir);
let sock_path = sock_dir.join(MAGPIE_SOCK);
let sock_path = canary_magpie::protocol::find_socket();
let socket = UnixStream::connect(sock_path).await.unwrap();
let mut magpie = MagpieClient::new(socket);
let protocol = "tebibyte-media.desktop.music-player-controller".to_string();