Use find_socket() in music player
This commit is contained in:
parent
4007c40ba6
commit
ce187a0381
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue