From 517265f17c73a7f17fcaf57958f85be410cc06f0 Mon Sep 17 00:00:00 2001 From: Headshotnoby Date: Tue, 22 Jun 2021 11:56:40 -0400 Subject: [PATCH] fix charselect crash on linux --- AO2XP.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AO2XP.py b/AO2XP.py index 0f11f3a..a12e17d 100644 --- a/AO2XP.py +++ b/AO2XP.py @@ -9,9 +9,11 @@ import ini __builtin__.audio = AUDIO del AUDIO -app = QtGui.QApplication(sys.argv) osname = platform.system() +if osname == "Linux": QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_X11InitThreads) # Linux fix +app = QtGui.QApplication(sys.argv) + path = sys.argv[0] if osname == "Darwin" and ".app" in path: # bundle path = "/".join(path.split("/")[:-1]) # to Resources folder