RareLauncher: Start the pre launch command as detached if we don't wait
This commit is contained in:
parent
f44413d17c
commit
a5c7c88716
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue