From 0421e41c47200f22775cce476b5b1faf1527a085 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 1 Jul 2023 10:25:47 +0400 Subject: [PATCH] Check actual executable path instead of cExeName in GenerateDesktopFile --- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index 64b6b0ff02e66..ba1b42d27ada0 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -182,7 +182,8 @@ bool GenerateDesktopFile( const QStringList &args = {}, bool onlyMainGroup = false, bool silent = false) { - if (targetPath.isEmpty() || cExeName().isEmpty()) { + const auto executable = ExecutablePathForShortcuts(); + if (targetPath.isEmpty() || executable.isEmpty()) { return false; } @@ -191,7 +192,6 @@ bool GenerateDesktopFile( const auto sourceFile = kDesktopFile.utf16(); const auto targetFile = targetPath + QGuiApplication::desktopFileName(); - const auto executable = ExecutablePathForShortcuts(); const auto sourceText = [&] { QFile source(sourceFile);