From f5941b02955f0f6d1e873293428cae826c136353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole-Andr=C3=A9=20Rodlie?= Date: Sun, 29 Dec 2024 15:34:06 +0100 Subject: [PATCH] wayland: fix app icon --- src/app/main.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index 26b87f3cc..58cc9de38 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -103,12 +103,6 @@ int main(int argc, char *argv[]) QApplication::setOrganizationDomain(AppSupport::getAppDomain()); QApplication::setApplicationVersion(AppSupport::getAppVersion()); -#ifdef Q_OS_LINUX - if (AppSupport::isWayland()) { - QGuiApplication::setDesktopFileName(AppSupport::getAppID()); - } -#endif - #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); @@ -131,7 +125,10 @@ int main(int argc, char *argv[]) // init splash bool showSplash = true; #ifdef Q_OS_LINUX - showSplash = !AppSupport::isWayland(); + if (AppSupport::isWayland()) { + QGuiApplication::setDesktopFileName(AppSupport::getAppID()); + showSplash = false; + } #endif QSplashScreen splash(QPixmap(":/icons/splash/splash-00001.png")); if (showSplash) {