Set the desktop file name.

Otherwise, on Wayland, Anki will look for python3.desktop This fixes the window icon.
This commit is contained in:
Wilco Greven 2019-07-18 23:14:34 +02:00
parent b503da2648
commit ffab5d31d4

View file

@ -312,6 +312,7 @@ def _run(argv=None, exec=True):
# create the app # create the app
app = AnkiApp(argv) app = AnkiApp(argv)
QCoreApplication.setApplicationName("Anki") QCoreApplication.setApplicationName("Anki")
QGuiApplication.setDesktopFileName("anki.desktop")
if app.secondInstance(): if app.secondInstance():
# we've signaled the primary instance, so we should close # we've signaled the primary instance, so we should close
return return