mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 07:07:13 -05:00
Set the desktop file name.
Otherwise, on Wayland, Anki will look for python3.desktop This fixes the window icon.
This commit is contained in:
parent
b503da2648
commit
ffab5d31d4
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue