Merge pull request #318 from wgreven/single-config-file-for-colors

Allow configuring Anki's color scheme using a single config file on Linux
This commit is contained in:
Damien Elmes 2019-07-22 10:51:51 +10:00 committed by GitHub
commit 4c6b608736
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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