- the ArgThread class is no longer launched in case of Linux systems due of crashes

This commit is contained in:
Marius Stanciu
2022-05-17 20:35:14 +03:00
committed by Marius
parent 739e41d48b
commit 04bb085794
2 changed files with 4 additions and 4 deletions

View File

@@ -451,7 +451,7 @@ class App(QtCore.QObject):
# ############################################################################################################
# ################# Setup the listening thread for another instance launching with args ######################
# ############################################################################################################
if sys.platform == 'win32' or sys.platform == 'linux':
if sys.platform == 'win32':
# make sure the thread is stored by using a self. otherwise it's garbage collected
self.listen_th = QtCore.QThread()
self.listen_th.start(priority=QtCore.QThread.Priority.LowestPriority)
@@ -4180,7 +4180,7 @@ class App(QtCore.QObject):
# try to quit the QThread that run ArgsThread class
try:
# del self.new_launch
if sys.platform == 'win32' or sys.platform == 'linux':
if sys.platform == 'win32':
self.listen_th.quit()
except Exception as e:
if silent is False:
@@ -4194,7 +4194,7 @@ class App(QtCore.QObject):
# self.close_app_signal.emit()
# sys.exit(0)
QtWidgets.QApplication.quit()
if sys.platform == 'win32' or sys.platform == 'linux':
if sys.platform == 'win32':
try:
self.new_launch.close_command()
except Exception:
@@ -9451,7 +9451,6 @@ class App(QtCore.QObject):
return float('%.*f' % (dec_nr, float(val)))
class ArgsThread(QtCore.QObject):
open_signal = pyqtSignal(list)
start = pyqtSignal()