drop(window)

This commit is contained in:
Erica Z 2024-11-01 13:53:42 +01:00
parent b3a5fc146a
commit 940254b4fd

View file

@ -43,6 +43,8 @@ mod imp {
.await .await
.expect("could not serve mpris player"); .expect("could not serve mpris player");
drop(window); // don't keep this alive
// always set up handlers before requesting service name // always set up handlers before requesting service name
conn.request_name("org.mpris.MediaPlayer2.audrey") conn.request_name("org.mpris.MediaPlayer2.audrey")
.await .await