mirror of
https://github.com/tnodir/fort
synced 2024-11-15 03:26:01 +00:00
UI: OsUtil: Use "ComSpec" env var for "cmd.exe" path
This commit is contained in:
parent
d7f829266c
commit
04cd393286
@ -3,6 +3,6 @@
|
||||
@cd "%~dp0"
|
||||
@echo off
|
||||
|
||||
%COMSPEC% /C "%~dp0uninstall.bat"
|
||||
%ComSpec% /C "%~dp0uninstall.bat"
|
||||
|
||||
"%~dp0install.bat" %*
|
||||
|
@ -184,7 +184,8 @@ void OsUtil::restartClient()
|
||||
{
|
||||
const QFileInfo fi(QCoreApplication::applicationFilePath());
|
||||
|
||||
const auto scriptPath = QLatin1String("cmd.exe");
|
||||
const auto scriptPath = qEnvironmentVariable("ComSpec", "cmd.exe");
|
||||
|
||||
const auto command = QString("timeout /t 2 >NUL & start %1 --restarted").arg(fi.fileName());
|
||||
|
||||
const QStringList args = { "/c", command };
|
||||
|
Loading…
Reference in New Issue
Block a user