From 62db485e2ebc207c497153e981fb7103d97a2ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= Date: Wed, 15 Jul 2026 10:45:09 +0200 Subject: [PATCH] Set desktop file name for the application (#4567) This ensures that the XDG toplevel app ID matches with the desktop file name, so Wayland compositors could match the window with the application and show the appropriate icon for them. --- NEWS.md | 1 + src/tiled/tiledapplication.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/NEWS.md b/NEWS.md index 84f375d8f7..2566a53808 100644 --- a/NEWS.md +++ b/NEWS.md @@ -11,6 +11,7 @@ * Fixed crash when the selection becomes empty while starting a move (#4536) * Fixed Properties view update on 'Reset Template Instance' and 'Replace With Template' actions * Linux: Added file associations for .tmj, .tsj, .tiled-project and .world files (by miffe, #4550) +* Linux: Fixed the window icon on some Wayland compositors (by Balló György, #4567) * macOS: Declared UTIs and file associations for all supported Tiled formats (with Jyotish, #4469) * snap: Updated to Qt 6 * Raised the minimum Qt version to 6.2 (drops Qt 5 support) diff --git a/src/tiled/tiledapplication.cpp b/src/tiled/tiledapplication.cpp index e82f0d6712..b6e2391dd2 100644 --- a/src/tiled/tiledapplication.cpp +++ b/src/tiled/tiledapplication.cpp @@ -51,6 +51,7 @@ TiledApplication::TiledApplication(int &argc, char **argv) #endif setApplicationDisplayName(QLatin1String("Tiled")); setApplicationVersion(QLatin1String(AS_STRING(TILED_VERSION))); + setDesktopFileName(QLatin1String("org.mapeditor.Tiled")); LanguageManager::instance()->installTranslators();