Merge branch 'update_mpris_permissions' into 'master'
Remove unnecessary MPRIS Flatpak permissions See merge request World/podcasts!124
This commit is contained in:
commit
85c485509c
@ -22,7 +22,6 @@
|
|||||||
"--socket=wayland",
|
"--socket=wayland",
|
||||||
"--socket=pulseaudio",
|
"--socket=pulseaudio",
|
||||||
"--device=dri",
|
"--device=dri",
|
||||||
"--own-name=org.mpris.MediaPlayer2.Podcasts",
|
|
||||||
"--env=USE_PLAYBING3=1"
|
"--env=USE_PLAYBING3=1"
|
||||||
],
|
],
|
||||||
"build-options" : {
|
"build-options" : {
|
||||||
|
|||||||
@ -22,7 +22,6 @@
|
|||||||
"--socket=wayland",
|
"--socket=wayland",
|
||||||
"--socket=pulseaudio",
|
"--socket=pulseaudio",
|
||||||
"--device=dri",
|
"--device=dri",
|
||||||
"--own-name=org.mpris.MediaPlayer2.Podcasts",
|
|
||||||
"--env=USE_PLAYBING3=1"
|
"--env=USE_PLAYBING3=1"
|
||||||
],
|
],
|
||||||
"build-options" : {
|
"build-options" : {
|
||||||
|
|||||||
@ -34,6 +34,7 @@ use podcasts_data::{dbqueries, USER_AGENT};
|
|||||||
use podcasts_data::{EpisodeWidgetModel, ShowCoverModel};
|
use podcasts_data::{EpisodeWidgetModel, ShowCoverModel};
|
||||||
|
|
||||||
use crate::app::Action;
|
use crate::app::Action;
|
||||||
|
use crate::config::APP_ID;
|
||||||
use crate::utils::set_image_from_path;
|
use crate::utils::set_image_from_path;
|
||||||
|
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
@ -213,9 +214,9 @@ impl Default for PlayerWidget {
|
|||||||
);
|
);
|
||||||
|
|
||||||
let mpris = MprisPlayer::new(
|
let mpris = MprisPlayer::new(
|
||||||
"Podcasts".to_string(),
|
APP_ID.to_string(),
|
||||||
"GNOME Podcasts".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_raise(true);
|
||||||
mpris.set_can_play(false);
|
mpris.set_can_play(false);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user