diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-07 20:01:49 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2020-02-07 20:01:49 -0600 |
commit | 56486ccb1f25cb7da1bdb7e62ec1f28ed78f0f9d (patch) | |
tree | ad8e4cc5c1e88fd38369f46f7708690833b4b1e1 | |
parent | a76fd30084008f71bc6ae09565676648f9d9e556 (diff) | |
download | horizon-56486ccb1f25cb7da1bdb7e62ec1f28ed78f0f9d.tar.gz horizon-56486ccb1f25cb7da1bdb7e62ec1f28ed78f0f9d.tar.bz2 horizon-56486ccb1f25cb7da1bdb7e62ec1f28ed78f0f9d.tar.xz horizon-56486ccb1f25cb7da1bdb7e62ec1f28ed78f0f9d.zip |
Qt 5 UI: Call dhcpcd using full path
-rw-r--r-- | ui/qt5/netdhcppage.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/qt5/netdhcppage.cc b/ui/qt5/netdhcppage.cc index 56a29ca..44422f4 100644 --- a/ui/qt5/netdhcppage.cc +++ b/ui/qt5/netdhcppage.cc @@ -63,14 +63,15 @@ NetDHCPPage::NetDHCPPage(QWidget *parent) : HorizonWizardPage(parent) { void NetDHCPPage::startDHCP() { QProcess *dhcpcd = new QProcess(this); QString iface(QString::fromStdString(horizonWizard()->chosen_auto_iface)); - dhcpcd->setProgram("dhcpcd"); + dhcpcd->setProgram("/sbin/dhcpcd"); dhcpcd->setArguments({"-q", "-t", "15", "-n", "-j", "/var/log/horizon/dhcpcd.log", iface}); connect(dhcpcd, &QProcess::errorOccurred, [=](QProcess::ProcessError error) { addrStatus->setPixmap(loadDPIAwarePixmap("status-issue", ".svg")); if(error == QProcess::FailedToStart) { - information->setText(tr("The Installation Environment is missing a critical component: dhcpcd could not be run.")); + information->setText(tr("The Installation Environment is missing a critical component. dhcpcd could not be loaded.")); + logButton->setHidden(true); } else { information->setText(tr("The system has encountered an internal issue.")); logButton->setHidden(false); |