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

Correctly set _desktopFile to Telegram.desktop if Telegram.desktop was found

This commit is contained in:
John Zimmermann
2019-04-22 01:20:50 +02:00
committed by John Preston
parent e200a7d502
commit 4d42e7e5b9

View File

@@ -553,8 +553,8 @@ void MainWindow::psFirstShow() {
LOG(("Found Unity Launcher entry telegramdesktop.desktop!"));
useUnityCount=true;
} else if(!QStandardPaths::locate(QStandardPaths::ApplicationsLocation, "Telegram.desktop").isEmpty()) {
_desktopFile = "telegramdesktop.desktop";
LOG(("Found Unity Launcher entry telegramdesktop.desktop!"));
_desktopFile = "Telegram.desktop";
LOG(("Found Unity Launcher entry Telegram.desktop!"));
useUnityCount=true;
} else {
LOG(("Could not get Unity Launcher entry!"));