diff --git a/org.gnome.Podcasts.Devel.json b/org.gnome.Podcasts.Devel.json index d2e2fa3..1cbc11d 100644 --- a/org.gnome.Podcasts.Devel.json +++ b/org.gnome.Podcasts.Devel.json @@ -22,7 +22,6 @@ "--socket=wayland", "--socket=pulseaudio", "--device=dri", - "--own-name=org.mpris.MediaPlayer2.Podcasts", "--env=USE_PLAYBING3=1" ], "build-options" : { diff --git a/org.gnome.Podcasts.json b/org.gnome.Podcasts.json index 7b86efe..060554f 100644 --- a/org.gnome.Podcasts.json +++ b/org.gnome.Podcasts.json @@ -22,7 +22,6 @@ "--socket=wayland", "--socket=pulseaudio", "--device=dri", - "--own-name=org.mpris.MediaPlayer2.Podcasts", "--env=USE_PLAYBING3=1" ], "build-options" : { diff --git a/podcasts-gtk/src/widgets/player.rs b/podcasts-gtk/src/widgets/player.rs index ef1739d..9a081d9 100644 --- a/podcasts-gtk/src/widgets/player.rs +++ b/podcasts-gtk/src/widgets/player.rs @@ -34,6 +34,7 @@ use podcasts_data::{dbqueries, USER_AGENT}; use podcasts_data::{EpisodeWidgetModel, ShowCoverModel}; use crate::app::Action; +use crate::config::APP_ID; use crate::utils::set_image_from_path; use std::cell::RefCell; @@ -213,9 +214,9 @@ impl Default for PlayerWidget { ); let mpris = MprisPlayer::new( - "Podcasts".to_string(), + APP_ID.to_string(), "GNOME Podcasts".to_string(), - "org.gnome.Podcasts.desktop".to_string(), + format!("{}.desktop", APP_ID).to_string(), ); mpris.set_can_raise(true); mpris.set_can_play(false);