2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-10-13 13:58:04 +00:00

Split launcher filename detection to a function

This commit is contained in:
Ilya Fedin
2020-01-30 22:41:24 +04:00
committed by John Preston
parent e6cec49646
commit a831c1703a
5 changed files with 61 additions and 40 deletions

View File

@@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "platform/linux/notifications_manager_linux.h"
#include "platform/linux/specific_linux.h"
#include "history/history.h"
#include "lang/lang_keys.h"
#include "facades.h"
@@ -157,8 +158,7 @@ NotificationData::NotificationData(
_hints["category"] = qsl("im.received");
_hints["desktop-entry"] =
qsl(MACRO_TO_STRING(TDESKTOP_LAUNCHER_BASENAME));
_hints["desktop-entry"] = GetLauncherBasename();
_notificationInterface->connection().connect(
kService.utf16(),