From 254e95c054558f43648c4235d592f12bddd49a7e Mon Sep 17 00:00:00 2001 From: Reilly Brogan Date: Sun, 1 Dec 2024 07:11:03 -0600 Subject: [PATCH] fix: wayland appId (#1100) 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);