From e7f1affa15f9280d728e995fd76e0234b34b89ee Mon Sep 17 00:00:00 2001 From: Reilly Brogan Date: Fri, 12 Jul 2024 01:55:21 -0500 Subject: Force app_id to be set in more places (#2661) While testing the new version of kvirc I noticed that the setup window was using the `net.kvirc.kvirc` app_id. It seems my previous fix was incomplete since that window is started before the other window where we set the app_id. Fix it by adding it to the setup window as well, and also just add it to a bunch more locations so that the chances of it not being set elsewhere are lower.--- src/modules/setup/SetupWizard.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/modules/setup') diff --git a/src/modules/setup/SetupWizard.cpp b/src/modules/setup/SetupWizard.cpp index 67a7dcdba..86cfbe2dd 100644 --- a/src/modules/setup/SetupWizard.cpp +++ b/src/modules/setup/SetupWizard.cpp @@ -142,6 +142,9 @@ SetupWizard::SetupWizard() QString szImagePath; g_pApp->getGlobalKvircDirectory(szImagePath, KviApplication::Pics, "kvi_setup_label.png"); + // set name of the app desktop file; used by wayland to load the window icon + QGuiApplication::setDesktopFileName("net.kvirc.KVIrc" KVIRC_VERSION_MAJOR); + m_pLabelPixmap = new QPixmap(szImagePath); if(m_pLabelPixmap->isNull()) { -- cgit v1.3.1-10-gc9f91