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