Mercurial > trustbridge
comparison ui/mainwindow.cpp @ 1260:82792b3a16bd
Add inactive debug code for update installation
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 26 Sep 2014 13:28:47 +0200 |
parents | f1e461340ede |
children | 8bfbfd4ea568 |
comparison
equal
deleted
inserted
replaced
1259:f1e461340ede | 1260:82792b3a16bd |
---|---|
435 sudoPrograms << "pkexec" << "kdesudo" << "sudo"; | 435 sudoPrograms << "pkexec" << "kdesudo" << "sudo"; |
436 QStringList sudoParams; | 436 QStringList sudoParams; |
437 sudoParams << filePath; | 437 sudoParams << filePath; |
438 sudoParams << parameters; | 438 sudoParams << parameters; |
439 updaterProcess->setArguments(sudoParams); | 439 updaterProcess->setArguments(sudoParams); |
440 | |
441 #if 0 | |
442 updaterProcess->setStandardErrorFile("/tmp/tb-inst-err.log"); | |
443 updaterProcess->setStandardOutputFile("/tmp/tb-inst-out.log"); | |
444 #endif | |
440 | 445 |
441 foreach (const QString &sProg, sudoPrograms) { | 446 foreach (const QString &sProg, sudoPrograms) { |
442 qDebug() << "Starting process " << sProg <<" params: " << sudoParams; | 447 qDebug() << "Starting process " << sProg <<" params: " << sudoParams; |
443 updaterProcess->setProgram(sProg); | 448 updaterProcess->setProgram(sProg); |
444 updaterProcess->start(); | 449 updaterProcess->start(); |