mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-05 13:57:52 +00:00
Get rid of SystemMediaControls::setServiceName usage
This commit is contained in:
parent
0ca9bbafad
commit
bb008911b0
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user