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 "media/streaming/media_streaming_player.h"
|
||||||
#include "ui/text/format_song_document_name.h"
|
#include "ui/text/format_song_document_name.h"
|
||||||
|
|
||||||
#include <ksandbox.h>
|
|
||||||
|
|
||||||
namespace Media {
|
namespace Media {
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
@ -50,10 +48,6 @@ SystemMediaControlsManager::SystemMediaControlsManager()
|
||||||
base::Platform::SystemMediaControls::PlaybackStatus;
|
base::Platform::SystemMediaControls::PlaybackStatus;
|
||||||
using Command = base::Platform::SystemMediaControls::Command;
|
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());
|
_controls->setApplicationName(AppName.utf16());
|
||||||
const auto inited = _controls->init();
|
const auto inited = _controls->init();
|
||||||
if (!inited) {
|
if (!inited) {
|
||||||
|
|
|
@ -38,7 +38,7 @@ apps:
|
||||||
- wayland
|
- wayland
|
||||||
- x11
|
- x11
|
||||||
slots:
|
slots:
|
||||||
- tdesktop-mpris
|
- mpris
|
||||||
|
|
||||||
hooks:
|
hooks:
|
||||||
configure:
|
configure:
|
||||||
|
@ -66,11 +66,6 @@ plugs:
|
||||||
target: $SNAP/data-dir/sounds
|
target: $SNAP/data-dir/sounds
|
||||||
default-provider: gtk-common-themes
|
default-provider: gtk-common-themes
|
||||||
|
|
||||||
slots:
|
|
||||||
tdesktop-mpris:
|
|
||||||
interface: mpris
|
|
||||||
name: tdesktop
|
|
||||||
|
|
||||||
layout:
|
layout:
|
||||||
/usr/share/alsa:
|
/usr/share/alsa:
|
||||||
bind: $SNAP/usr/share/alsa
|
bind: $SNAP/usr/share/alsa
|
||||||
|
|
Loading…
Reference in New Issue