2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Set service name for MPRIS

This commit is contained in:
Ilya Fedin
2021-07-09 15:17:48 +04:00
committed by John Preston
parent cc7f569c77
commit c53564cfdc
2 changed files with 2 additions and 1 deletions

View File

@@ -38,6 +38,7 @@ SystemMediaControlsManager::SystemMediaControlsManager(
base::Platform::SystemMediaControls::PlaybackStatus;
using Command = base::Platform::SystemMediaControls::Command;
_controls->setServiceName(qsl("org.mpris.MediaPlayer2.tdesktop"));
_controls->setApplicationName(AppName.utf16());
const auto inited = _controls->init(controller->widget());
if (!inited) {