mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:15:39 +00:00
UI: Simplify client restarting script
"for /L %i" is not working on Windows 7.
This commit is contained in:
parent
9803255f31
commit
a6ba0779dd
@ -193,9 +193,8 @@ void OsUtil::restartClient()
|
||||
{
|
||||
const QFileInfo fi(QCoreApplication::applicationFilePath());
|
||||
|
||||
const auto command = QString("for /L %i in (1,1,30) do ("
|
||||
"ping -n 2 127.0.0.1 >NUL"
|
||||
" & if not exist inst.tmp start %1 --launch & exit)")
|
||||
const auto command = QString("ping -n 3 127.0.0.1 >NUL"
|
||||
" & if not exist inst.tmp start %1 --launch")
|
||||
.arg(fi.fileName());
|
||||
|
||||
runCommand(command, /*workingDir=*/fi.path());
|
||||
|
Loading…
Reference in New Issue
Block a user