Always ask for TDESKTOP_LAUNCHER_BASENAME on Linux.

This commit is contained in:
John Preston
2020-01-21 18:39:13 +03:00
parent f0dc912080
commit 48b24d12b2
5 changed files with 13 additions and 18 deletions

View File

@@ -548,10 +548,7 @@ void MainWindow::psFirstShow() {
auto snapName = QString::fromLatin1(qgetenv("SNAP_NAME"));
if(snapName.isEmpty()) {
std::vector<QString> possibleDesktopFiles = {
#ifdef TDESKTOP_LAUNCHER_FILENAME
MACRO_TO_STRING(TDESKTOP_LAUNCHER_FILENAME),
#endif // TDESKTOP_LAUNCHER_FILENAME
"telegramdesktop.desktop",
MACRO_TO_STRING(TDESKTOP_LAUNCHER_BASENAME) + ".desktop",
"Telegram.desktop"
};