1
0
Fork 0
mirror of synced 2024-06-29 11:40:37 +12:00

RareLauncher: Print debug when running pre-launch command

This commit is contained in:
loathingKernel 2024-05-19 20:50:01 +03:00
parent cded2e561c
commit 3f67ce515f

View file

@ -78,9 +78,10 @@ class PreLaunch(QRunnable):
proc.setProcessEnvironment(launch_args.environment)
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:])
self.logger.debug("Running pre-launch command %s, %s", pre_launch_command[0], pre_launch_command[1:])
if launch_args.pre_launch_wait:
proc.start(pre_launch_command[0], pre_launch_command[1:])
self.logger.debug("Waiting for pre-launch command to finish")
proc.waitForFinished(-1)
else:
proc.startDetached(pre_launch_command[0], pre_launch_command[1:])