Linux/Wayland: make window title bar icon work

This commit is contained in:
Peter Eszlari 2019-02-28 22:41:08 +01:00 committed by sledgehammer999
parent f14573307c
commit f48d057c47
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2

View file

@ -124,6 +124,7 @@ Application::Application(const QString &id, int &argc, char **argv)
qRegisterMetaType<Log::Msg>("Log::Msg");
setApplicationName("qBittorrent");
setOrganizationDomain("qbittorrent.org");
validateCommandLineParameters();
QString profileDir = m_commandLineArgs.portableMode
@ -145,6 +146,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)