|
|
@ -137,7 +137,7 @@ System::runCommand( System::RunLocation location,
|
|
|
|
|
|
|
|
|
|
|
|
QProcess process;
|
|
|
|
QProcess process;
|
|
|
|
QString program;
|
|
|
|
QString program;
|
|
|
|
QStringList arguments;
|
|
|
|
QStringList arguments( args );
|
|
|
|
|
|
|
|
|
|
|
|
if ( location == System::RunLocation::RunInTarget )
|
|
|
|
if ( location == System::RunLocation::RunInTarget )
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -149,13 +149,11 @@ System::runCommand( System::RunLocation location,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
program = "chroot";
|
|
|
|
program = "chroot";
|
|
|
|
arguments = QStringList( { destDir } );
|
|
|
|
arguments.prepend( destDir );
|
|
|
|
arguments << args;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
program = "env";
|
|
|
|
program = "env";
|
|
|
|
arguments << args;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
process.setProgram( program );
|
|
|
|
process.setProgram( program );
|
|
|
|