Sfoglia il codice sorgente

Merge pull request #12521 from ReillyBrogan/fix-wayland-appid

Fix Wayland appId
liamwhite 2 anni fa
parent
commit
6c6cb5745f
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      src/yuzu/main.cpp

+ 4 - 0
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();