Get rid of SystemMediaControls::setServiceName usage

This commit is contained in:
Ilya Fedin 2023-04-23 00:44:46 +04:00 committed by John Preston
parent 0ca9bbafad
commit bb008911b0
2 changed files with 1 additions and 12 deletions

View File

@ -21,8 +21,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "media/streaming/media_streaming_player.h"
#include "ui/text/format_song_document_name.h"
#include <ksandbox.h>
namespace Media {
namespace {
@ -50,10 +48,6 @@ SystemMediaControlsManager::SystemMediaControlsManager()
base::Platform::SystemMediaControls::PlaybackStatus;
using Command = base::Platform::SystemMediaControls::Command;
// Flatpak provides default permission to MPRIS, but not snap
if (!KSandbox::isFlatpak()) {
_controls->setServiceName(u"tdesktop"_q);
}
_controls->setApplicationName(AppName.utf16());
const auto inited = _controls->init();
if (!inited) {

View File

@ -38,7 +38,7 @@ apps:
- wayland
- x11
slots:
- tdesktop-mpris
- mpris
hooks:
configure:
@ -66,11 +66,6 @@ plugs:
target: $SNAP/data-dir/sounds
default-provider: gtk-common-themes
slots:
tdesktop-mpris:
interface: mpris
name: tdesktop
layout:
/usr/share/alsa:
bind: $SNAP/usr/share/alsa