From ffab5d31d442bf7ed3b99beb7ea58ed6b1a68829 Mon Sep 17 00:00:00 2001 From: Wilco Greven Date: Thu, 18 Jul 2019 23:14:34 +0200 Subject: [PATCH] Set the desktop file name. Otherwise, on Wayland, Anki will look for python3.desktop This fixes the window icon. --- aqt/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aqt/__init__.py b/aqt/__init__.py index 073ebe771..c30b2bd7d 100644 --- a/aqt/__init__.py +++ b/aqt/__init__.py @@ -312,6 +312,7 @@ def _run(argv=None, exec=True): # create the app app = AnkiApp(argv) QCoreApplication.setApplicationName("Anki") + QGuiApplication.setDesktopFileName("anki.desktop") if app.secondInstance(): # we've signaled the primary instance, so we should close return