Call setDesktopFileName without `.desktop` suffix
authorkleifgch <81602214+kleifgch@users.noreply.github.com>
Sun, 29 Dec 2024 03:07:25 +0000 (04:07 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Thu, 2 Jan 2025 11:33:34 +0000 (11:33 +0000)
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

index f6df24546c61c5e87d753704e4f50328757020e3..5c2c781277024abd6c40e5c6f741ea3d4c72f7a5 100644 (file)
@@ -229,9 +229,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());