From b7841032c624da0049bd7a57c593ddc4f91b51ef Mon Sep 17 00:00:00 2001 From: Reilly Brogan Date: Mon, 25 Nov 2024 15:52:33 -0600 Subject: [PATCH] wayland: Fix appId Signed-off-by: Reilly Brogan --- other/io.github.antimicrox.antimicrox.desktop | 1 - src/main.cpp | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/other/io.github.antimicrox.antimicrox.desktop b/other/io.github.antimicrox.antimicrox.desktop index 8631922c4..dec6b5644 100644 --- a/other/io.github.antimicrox.antimicrox.desktop +++ b/other/io.github.antimicrox.antimicrox.desktop @@ -17,7 +17,6 @@ Categories=Game;Qt;Utility; MimeType=application/x-amgp; Keywords=game;controller;keyboard;joystick;mouse; Actions=run-in-tray; -StartupWMClass=antimicrox [Desktop Action run-in-tray] Name=Open in system tray only diff --git a/src/main.cpp b/src/main.cpp index 04679b72b..17fd7efd3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -419,6 +419,9 @@ int main(int argc, char *argv[]) QTranslator qtTranslator; #if defined(Q_OS_UNIX) + // Ensure that the Wayland appId matches the .desktop file name + QGuiApplication::setDesktopFileName("io.github.antimicrox.antimicrox"); + installSignalHandlers(); QString transPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);