summaryrefslogtreecommitdiff
path: root/ui/qt5/intropage.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt5/intropage.cc')
-rw-r--r--ui/qt5/intropage.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/qt5/intropage.cc b/ui/qt5/intropage.cc
index 94e222d..d0189e7 100644
--- a/ui/qt5/intropage.cc
+++ b/ui/qt5/intropage.cc
@@ -56,6 +56,11 @@ IntroPage::IntroPage(QWidget *parent) : HorizonWizardPage(parent) {
connect(toolMenu->addAction("&Partition Editor"), &QAction::triggered, [=](void) {
QProcess *p = new QProcess(this);
p->start("sudo", {"/usr/bin/partitionmanager"});
+ p->waitForStarted();
+ if(p->error() == QProcess::FailedToStart) {
+ // We may be on the -inst CD that has no sudo and runs as root.
+ p->start("/usr/bin/partitionmanager");
+ }
horizonWizard()->tools.push_back(p);
});
connect(toolMenu->addAction("&Web Browser"), &QAction::triggered, [=](void){