mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Get rid of SystemMediaControls::setServiceName usage
This commit is contained in:
@@ -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) {
|
||||
|
||||
+1
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user