Remove unnecessary MPRIS Flatpak permissions

This commit is contained in:
Felix Häcker 2019-10-09 21:03:13 +02:00
parent bb0cf5b547
commit 026145e0c7
3 changed files with 3 additions and 4 deletions

View File

@ -22,7 +22,6 @@
"--socket=wayland",
"--socket=pulseaudio",
"--device=dri",
"--own-name=org.mpris.MediaPlayer2.Podcasts",
"--env=USE_PLAYBING3=1"
],
"build-options" : {

View File

@ -22,7 +22,6 @@
"--socket=wayland",
"--socket=pulseaudio",
"--device=dri",
"--own-name=org.mpris.MediaPlayer2.Podcasts",
"--env=USE_PLAYBING3=1"
],
"build-options" : {

View File

@ -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);