From 61efc6ee45a81a3720f346ef50a6f8b1e682a773 Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Thu, 1 Jul 2021 00:37:30 -0400 Subject: [PATCH] Minor fixes on developer key things --- mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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");