mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
fix mesa driver being loaded on nvidia driver machines
This commit is contained in:
parent
04c13d1348
commit
6377dd161f
1 changed files with 6 additions and 1 deletions
|
@ -15,7 +15,7 @@ from aqt.qt import *
|
||||||
import anki.lang
|
import anki.lang
|
||||||
from anki.consts import HELP_SITE
|
from anki.consts import HELP_SITE
|
||||||
from anki.lang import langDir
|
from anki.lang import langDir
|
||||||
from anki.utils import isMac
|
from anki.utils import isMac, isLin
|
||||||
|
|
||||||
appVersion=_version
|
appVersion=_version
|
||||||
appWebsite="http://ankisrs.net/"
|
appWebsite="http://ankisrs.net/"
|
||||||
|
@ -212,6 +212,11 @@ def _run():
|
||||||
rd = os.path.abspath(moduleDir + "/../../../plugins")
|
rd = os.path.abspath(moduleDir + "/../../../plugins")
|
||||||
QCoreApplication.setLibraryPaths([rd])
|
QCoreApplication.setLibraryPaths([rd])
|
||||||
|
|
||||||
|
# work around pyqt loading wrong GL library
|
||||||
|
if isLin:
|
||||||
|
import ctypes
|
||||||
|
ctypes.CDLL('libGL.so.1', ctypes.RTLD_GLOBAL)
|
||||||
|
|
||||||
# create the app
|
# create the app
|
||||||
app = AnkiApp(sys.argv)
|
app = AnkiApp(sys.argv)
|
||||||
QCoreApplication.setApplicationName("Anki")
|
QCoreApplication.setApplicationName("Anki")
|
||||||
|
|
Loading…
Reference in a new issue