summaryrefslogtreecommitdiff
path: root/src/spawn.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-24 05:27:39 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-06 07:44:53 -0500
commit8f24f6298f62e36db1c7a624052e70b41c5e7e27 (patch)
tree19339b4dd0c83c8dba894023f5044fe030545159 /src/spawn.cpp
parent4e8dcc5157706e1478396179f5dc11305532b159 (diff)
wait for executable when opening files
Diffstat (limited to 'src/spawn.cpp')
-rw-r--r--src/spawn.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spawn.cpp b/src/spawn.cpp
index dd93bfaa..fe1e9e3e 100644
--- a/src/spawn.cpp
+++ b/src/spawn.cpp
@@ -1029,7 +1029,7 @@ bool isJavaFile(const QFileInfo& target)
QFileInfo getCmdPath()
{
- const auto p = env::get("COMSPEC2");
+ const auto p = env::get("COMSPEC");
if (!p.isEmpty()) {
return p;
}
@@ -1111,7 +1111,7 @@ bool helperExec(
{
SHELLEXECUTEINFOW execInfo = {};
- ULONG flags = SEE_MASK_FLAG_NO_UI ;
+ ULONG flags = SEE_MASK_FLAG_NO_UI;
if (!async)
flags |= SEE_MASK_NOCLOSEPROCESS;