diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-12-09 21:37:47 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-12-09 21:37:47 -0600 |
commit | e415fc62b02d416dae39f2d53765ca839abca419 (patch) | |
tree | 83e56661e87462a387e075b69e678d4c05d67a2b /ui/qt5/runner/executepage.cc | |
parent | 9f971cc0aedae6c89052bedc684245fc8c893cdf (diff) | |
download | horizon-e415fc62b02d416dae39f2d53765ca839abca419.tar.gz horizon-e415fc62b02d416dae39f2d53765ca839abca419.tar.bz2 horizon-e415fc62b02d416dae39f2d53765ca839abca419.tar.xz horizon-e415fc62b02d416dae39f2d53765ca839abca419.zip |
Qt UI: Runner: Use specialised QProcess subclass
This allows us to set the uid/gid in the executor process so that APK
inherits full root, which prevents a weird error that causes APK Tools
to write out all files as owned by the live user's GID when run under
live media.
Diffstat (limited to 'ui/qt5/runner/executepage.cc')
-rw-r--r-- | ui/qt5/runner/executepage.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt5/runner/executepage.cc b/ui/qt5/runner/executepage.cc index 0d0980a..ce69c5e 100644 --- a/ui/qt5/runner/executepage.cc +++ b/ui/qt5/runner/executepage.cc @@ -13,6 +13,7 @@ #include "executepage.hh" #include "executorwizard.hh" +#include "executorprocess.hh" #include <QAbstractButton> #include <QGridLayout> @@ -53,7 +54,7 @@ ExecutePage::ExecutePage(QWidget *parent) : HorizonWizardPage(parent) { this->current = Prepare; markRunning(this->current); - executor = new QProcess(this); + executor = new ExecutorProcess(this); executor->setProgram("hscript-executor"); connect(executor, &QProcess::readyReadStandardError, this, &ExecutePage::executorReady); |