From 163c10191f1dfaf5e8cdbd6cd41f03ab2ebf8449 Mon Sep 17 00:00:00 2001 From: Kris Cherven <50562493+krischerven@users.noreply.github.com> Date: Sun, 22 Sep 2024 08:02:35 +0000 Subject: [PATCH] Fix Qt desktop file name warning (#3419) * Fix Qt desktop file name warning * Update CONTRIBUTORS --- CONTRIBUTORS | 4 ++-- qt/aqt/__init__.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index ce4c02e44..2ea0b86b8 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -118,7 +118,7 @@ yellowjello Ingemar Berg Ben Kerman Euan Kemp -Kieran Black +Kieran Black XeR mgrottenthaler Austin Siew @@ -138,7 +138,7 @@ Monty Evans Nil Admirari Michael Winkworth Mateusz Wojewoda -Jarrett Ye +Jarrett Ye Sam Waechter Michael Eliachevitch Carlo Quick diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py index 1d1faad45..349c110af 100644 --- a/qt/aqt/__init__.py +++ b/qt/aqt/__init__.py @@ -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