Mercurial > trustbridge
changeset 894:2e7fff9d195a
Update in the real prefix
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 08 Aug 2014 14:37:31 +0200 |
parents | b61d5a289d8f |
children | 8ac2d9b0668d |
files | ui/mainwindow.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ui/mainwindow.cpp Fri Aug 08 14:37:02 2014 +0200 +++ b/ui/mainwindow.cpp Fri Aug 08 14:37:31 2014 +0200 @@ -313,7 +313,9 @@ return; } #else /* WIN32 */ + /* On linux installDir is <prefix>/bin */ QStringList parameters; + installDir.cdUp(); parameters << "--prefix" << installDir.path(); bool sudo_started = false; bool use_sudo = is_admin() && is_system_install(); @@ -333,6 +335,7 @@ } } } + qDebug() << "Starting process " << filePath <<" params: " << parameters; if (!sudo_started && !QProcess::startDetached(filePath, parameters)) { qDebug() << "Failed to start process."; return;