Fix Qt desktop file name warning (#3419)

* Fix Qt desktop file name warning

* Update CONTRIBUTORS
This commit is contained in:
Kris Cherven 2024-09-22 08:02:35 +00:00 committed by GitHub
parent 90661c4bfc
commit 163c10191f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -667,7 +667,7 @@ def _run(argv: list[str] | None = None, exec: bool = True) -> AnkiApp | None:
# create the app
QCoreApplication.setApplicationName("Anki")
QGuiApplication.setDesktopFileName("anki.desktop")
QGuiApplication.setDesktopFileName("anki")
app = AnkiApp(argv)
if app.secondInstance():
# we've signaled the primary instance, so we should close