Linux: manually set desktop file name

resolves #5180
This commit is contained in:
John Zimmermann 2019-04-22 00:39:55 +02:00 committed by John Preston
parent 4d42e7e5b9
commit c2a10f9c56
1 changed files with 3 additions and 0 deletions

View File

@ -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