From 84ac5dba02bc0e63e425aac5e91fd27ace89c171 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois-Simon=20Fauteux-Chapleau?=
 <francois-simon.fauteux-chapleau@savoirfairelinux.com>
Date: Thu, 13 Mar 2025 15:09:18 -0400
Subject: [PATCH] main: fix desktop file name

Commit 49d83fd937575bc14e35609dbb378a11146cbcc9 changed the name of
Jami's .desktop file, but didn't make the corresponding change to the
argument passed to setDesktopFileName in the main() function. This
causes a bug where GNOME (and possibly other desktop environments)
doesn't display the correct icon in the taskbar when Jami is running.

GitLab: #1948
Change-Id: I695057979b180777011a9995d799d38f9a4a0487
---
 src/app/main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/main.cpp b/src/app/main.cpp
index 8da67263..224c642c 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -80,7 +80,7 @@ main(int argc, char* argv[])
 
     MainApplication app(argc, argv);
 
-    app.setDesktopFileName(QStringLiteral("jami"));
+    app.setDesktopFileName(QStringLiteral("net.jami.Jami"));
 #if defined(Q_OS_MACOS)
     if (macutils::isMetalSupported()) {
         QQuickWindow::setGraphicsApi(QSGRendererInterface::MetalRhi);
-- 
GitLab