[PATCH 2 of 2] Update in the real prefix

Wald Commits scm-commit at wald.intevation.org
Fri Aug 8 14:37:35 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1407501451 -7200
# Node ID 2e7fff9d195acc92f1a55ce924ce9a58f3b97dcb
# Parent  b61d5a289d8f86db077422408521377b7dd00e2c
Update in the real prefix

diff -r b61d5a289d8f -r 2e7fff9d195a ui/mainwindow.cpp
--- 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;


More information about the Trustbridge-commits mailing list