summaryrefslogtreecommitdiffstats
path: root/heimdall-frontend/Source
diff options
context:
space:
mode:
authorBenjamin Dobell <ben.dobell@playup.com>2013-06-08 06:58:37 +0200
committerBenjamin Dobell <ben.dobell@playup.com>2013-06-08 07:07:01 +0200
commitf47b69d037b74cf0916bbab248abcafe8a1f01a3 (patch)
treeed4afe6fe9c26f2740276420792f3800e6b60bd5 /heimdall-frontend/Source
parentFixed configure/libtool issue on OS X by placing AC_PROG_LIBTOOL after AC_PROG_CXX. (diff)
downloadHeimdall-f47b69d037b74cf0916bbab248abcafe8a1f01a3.tar
Heimdall-f47b69d037b74cf0916bbab248abcafe8a1f01a3.tar.gz
Heimdall-f47b69d037b74cf0916bbab248abcafe8a1f01a3.tar.bz2
Heimdall-f47b69d037b74cf0916bbab248abcafe8a1f01a3.tar.lz
Heimdall-f47b69d037b74cf0916bbab248abcafe8a1f01a3.tar.xz
Heimdall-f47b69d037b74cf0916bbab248abcafe8a1f01a3.tar.zst
Heimdall-f47b69d037b74cf0916bbab248abcafe8a1f01a3.zip
Diffstat (limited to 'heimdall-frontend/Source')
-rw-r--r--heimdall-frontend/Source/mainwindow.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/heimdall-frontend/Source/mainwindow.cpp b/heimdall-frontend/Source/mainwindow.cpp
index 02d7a62..46dc381 100644
--- a/heimdall-frontend/Source/mainwindow.cpp
+++ b/heimdall-frontend/Source/mainwindow.cpp
@@ -52,13 +52,19 @@ void MainWindow::StartHeimdall(const QStringList& arguments)
QStringList paths;
- // Ensure /usr/bin is in PATH
+ // Ensure /usr/local/bin and /usr/bin are in PATH.
for (int i = 0; i < environment.length(); i++)
{
if (environment[i].left(5) == "PATH=")
{
paths = environment[i].mid(5).split(':');
- paths.prepend("/usr/bin");
+
+ if (!paths.contains("/usr/local/bin"))
+ paths.prepend("/usr/local/bin");
+
+ if (!paths.contains("/usr/bin"))
+ paths.prepend("/usr/bin");
+
break;
}
}
@@ -71,6 +77,7 @@ void MainWindow::StartHeimdall(const QStringList& arguments)
if (heimdallPath.length() > 0)
{
+ utilityOutputPlainTextEdit->clear();
heimdallFailed = false;
if (heimdallPath[heimdallPath.length() - 1] != QDir::separator())