mirror of
https://github.com/wh201906/Proxmark3GUI.git
synced 2026-07-14 22:55:32 +08:00
V0.2.1
This commit is contained in:
+2
-3
@@ -137,15 +137,14 @@ void MainWindow::on_PM3_connectButton_clicked()
|
||||
envSetProcess.start("sh -c \' . \"" + envScriptPath.absoluteFilePath() + "\">>/dev/null && env");
|
||||
#endif
|
||||
envSetProcess.waitForReadyRead(10000);
|
||||
QString test = QString(envSetProcess.readAll());
|
||||
clientEnv = test.split(QRegExp("[\r\n]{1,2}"), QString::SkipEmptyParts);
|
||||
QString envSetResult = QString(envSetProcess.readAll());
|
||||
clientEnv = envSetResult.split(QRegExp("[\r\n]{1,2}"), QString::SkipEmptyParts);
|
||||
if(clientEnv.size() > 2) // the first element is "set" and the last element is the current path
|
||||
{
|
||||
clientEnv.removeFirst();
|
||||
clientEnv.removeLast();
|
||||
emit setProcEnv(&clientEnv);
|
||||
}
|
||||
qDebug() << clientEnv;
|
||||
// qDebug() << "Get Env List" << clientEnv;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user