1
0
Fork 0
mirror of synced 2024-10-01 17:57:00 +13:00

RareLauncher: Start the pre launch command as detached if we don't wait

This commit is contained in:
loathingKernel 2024-05-19 18:26:27 +03:00
parent f44413d17c
commit a5c7c88716

View file

@ -79,9 +79,11 @@ class PreLaunch(QRunnable):
self.signals.pre_launch_command_started.emit()
pre_launch_command = shlex.split(launch_args.pre_launch_command)
# self.logger.debug("Executing prelaunch command %s, %s", pre_launch_command[0], pre_launch_command[1:])
proc.start(pre_launch_command[0], pre_launch_command[1:])
if launch_args.pre_launch_wait:
proc.start(pre_launch_command[0], pre_launch_command[1:])
proc.waitForFinished(-1)
else:
proc.startDetached(pre_launch_command[0], pre_launch_command[1:])
return launch_args