From 9f250713d2f4cbc04de883c5a8064a2f89c0aecc Mon Sep 17 00:00:00 2001 From: Peter Eszlari Date: Thu, 28 Feb 2019 22:41:08 +0100 Subject: [PATCH] Linux/Wayland: make window title bar icon work --- src/app/application.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/application.cpp b/src/app/application.cpp index d2acbd829..207dec302 100644 --- a/src/app/application.cpp +++ b/src/app/application.cpp @@ -125,6 +125,7 @@ Application::Application(const QString &id, int &argc, char **argv) qRegisterMetaType("Log::Msg"); setApplicationName("qBittorrent"); + setOrganizationDomain("qbittorrent.org"); validateCommandLineParameters(); const QString profileDir = m_commandLineArgs.portableMode @@ -146,6 +147,9 @@ Application::Application(const QString &id, int &argc, char **argv) #if !defined(DISABLE_GUI) setAttribute(Qt::AA_UseHighDpiPixmaps, true); // opt-in to the high DPI pixmap support setQuitOnLastWindowClosed(false); +#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0) + setDesktopFileName("org.qbittorrent.qBittorrent"); +#endif #endif #if defined(Q_OS_WIN) && !defined(DISABLE_GUI)