From c2a10f9c569b2d0fcdf147f5f2a383050959d9c5 Mon Sep 17 00:00:00 2001 From: John Zimmermann Date: Mon, 22 Apr 2019 00:39:55 +0200 Subject: [PATCH] Linux: manually set desktop file name resolves #5180 --- Telegram/SourceFiles/core/launcher.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Telegram/SourceFiles/core/launcher.cpp b/Telegram/SourceFiles/core/launcher.cpp index 129407523..f1b7d1210 100644 --- a/Telegram/SourceFiles/core/launcher.cpp +++ b/Telegram/SourceFiles/core/launcher.cpp @@ -208,6 +208,9 @@ void Launcher::init() { QApplication::setApplicationName(qsl("TelegramDesktop")); +#if defined(Q_OS_LINUX) && QT_VERSION >= QT_VERSION_CHECK(5, 7, 0) + QApplication::setDesktopFileName(qsl("telegramdesktop.desktop")); +#endif #ifndef OS_MAC_OLD QApplication::setAttribute(Qt::AA_DisableHighDpiScaling, true); #endif // OS_MAC_OLD