diff --git a/mainwindow.cpp b/mainwindow.cpp index 8b1ed21..5b9e37a 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -494,7 +494,7 @@ MainWindow::MainWindow(QWidget *parent) } // If the DEVKEY file is present, install a developer key - if(QFile::exists("/mnt/onboard/onboard/.inkbox/DEVKEY") == true && QFile::exists("/mnt/onboard/onboard/.inkbox/DEVKEY.dgst")) { + if(QFile::exists("/mnt/onboard/onboard/.inkbox/DEVKEY") == true && QFile::exists("/mnt/onboard/onboard/.inkbox/DEVKEY.dgst") == true) { string_checkconfig_ro("/mnt/onboard/onboard/.inkbox/DEVKEY"); QString developerKey = checkconfig_str_val.left(256); @@ -504,6 +504,7 @@ MainWindow::MainWindow(QWidget *parent) args << "install_developer-key.sh" << developerKey << "/mnt/onboard/onboard/.inkbox/DEVKEY.dgst"; QProcess *proc = new QProcess(); proc->start(prog, args); + proc->waitForFinished(); QFile::remove("/mnt/onboard/onboard/.inkbox/DEVKEY"); QFile::remove("/mnt/onboard/onboard/.inkbox/DEVKEY.dgst");