Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

Fix Wayland appId

Reilly Brogan73d189050ce8
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 059fcf0413..c789c1e59e 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -5342,6 +5342,10 @@ int main(int argc, char* argv[]) {
if (QString::fromLocal8Bit(qgetenv("DISPLAY")).isEmpty()) {
qputenv("DISPLAY", ":0");
}
+
+ // Fix the Wayland appId. This needs to match the name of the .desktop file without the .desktop
+ // suffix.
+ QGuiApplication::setDesktopFileName(QStringLiteral("org.yuzu_emu.yuzu"));
#endif
SetHighDPIAttributes();