diff --git a/src/application.rs b/src/application.rs index 98bcb6f..f8fa5e0 100644 --- a/src/application.rs +++ b/src/application.rs @@ -43,6 +43,8 @@ mod imp { .await .expect("could not serve mpris player"); + drop(window); // don't keep this alive + // always set up handlers before requesting service name conn.request_name("org.mpris.MediaPlayer2.audrey") .await