mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Get rid of SystemMediaControls::setServiceName usage
This commit is contained in:
parent
0ca9bbafad
commit
bb008911b0
2 changed files with 1 additions and 12 deletions
|
@ -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…
Add table
Reference in a new issue