mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-29 12:52:28 -04:00
Handle missing user_hardware on non-Windows systems
This commit is contained in:
parent
a2ad0be85b
commit
bb927a6115
@ -719,6 +719,12 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
|
|||||||
// run the executable. CMD.EXE returns exit code 1 when it
|
// run the executable. CMD.EXE returns exit code 1 when it
|
||||||
// can't find the target executable.
|
// can't find the target executable.
|
||||||
if (exitCode != 1) // CMD.EXE couldn't find file to execute
|
if (exitCode != 1) // CMD.EXE couldn't find file to execute
|
||||||
|
#else
|
||||||
|
// We forgo detecting user_hardware failures with exit
|
||||||
|
// code 127 non-Windows. This is because we use /bin/sh to
|
||||||
|
// run the executable. /bin/sh returns exit code 127 when it
|
||||||
|
// can't find the target executable.
|
||||||
|
if (exitCode != 127) // /bin/sh couldn't find file to execute
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
subProcessFailed (&p3, exitCode, status);
|
subProcessFailed (&p3, exitCode, status);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user