From 4d42e7e5b916cbd95d9fb19a2a31e36a0c797629 Mon Sep 17 00:00:00 2001 From: John Zimmermann Date: Mon, 22 Apr 2019 01:20:50 +0200 Subject: [PATCH] Correctly set _desktopFile to Telegram.desktop if Telegram.desktop was found --- Telegram/SourceFiles/platform/linux/main_window_linux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp index 98fbafaecb..ac2be9cd4c 100644 --- a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp @@ -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!"));