From 5d36070d15627bf657a9b06b4878ce8d8212bbd8 Mon Sep 17 00:00:00 2001 From: kleifgch <81602214+kleifgch@users.noreply.github.com> Date: Sun, 29 Dec 2024 04:07:25 +0100 Subject: [PATCH] Call setDesktopFileName without `.desktop` suffix As clarified in [1], the method expects to be called without the suffix. [1] https://github.com/qt/qtbase/commit/0c5135a9dfa6140d23d86b001c3054891c22dcb9 Signed-off-by: kleifgch <81602214+kleifgch@users.noreply.github.com> --- src/gui/application.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/application.cpp b/src/gui/application.cpp index ab4d4159ee5fb..c5c0f7cb684cb 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -230,9 +230,7 @@ Application::Application(int &argc, char **argv) // setOrganizationName(QLatin1String(APPLICATION_VENDOR)); setOrganizationDomain(QLatin1String(APPLICATION_REV_DOMAIN)); - QString desktopFileName = QString(QLatin1String(LINUX_APPLICATION_ID) - + QLatin1String(".desktop")); - setDesktopFileName(desktopFileName); + setDesktopFileName(QString(LINUX_APPLICATION_ID)); setApplicationName(_theme->appName()); setWindowIcon(_theme->applicationIcon());