diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2014-07-31 20:39:14 +0200 |
---|---|---|
committer | Anne Jan Brouwer <ajbrouwer@totalactivemedia.nl> | 2014-07-31 20:39:14 +0200 |
commit | e4479e2f708f59f8d0c7a7c59d5de8ab37b348d7 (patch) | |
tree | bbfa203fd0792f93c9c0d6bf3deb3a8c2921c180 /main.cpp | |
parent | 7b7f652ac1f20e3b8bfd1ca3b0cd31ad741f5400 (diff) |
configurable
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
@@ -1,7 +1,5 @@ #include "mainwindow.h" #include <QApplication> -#include <QProcess> -//#include <QMessageBox> int main(int argc, char *argv[]) { @@ -9,33 +7,6 @@ int main(int argc, char *argv[]) MainWindow w; - QProcess *testProcess = new QProcess(); - - testProcess->start("which pass"); - testProcess->waitForFinished(); - if (testProcess->exitCode() == 0) { - w.setPassExecutable(testProcess->readAllStandardOutput()); - } else { - w.setPassExecutable(""); - //QMessageBox msgBox; - //msgBox.setText("Please install pass from http://www.passwordstore.org/"); - //msgBox.exec(); - testProcess->start("which git"); - testProcess->waitForFinished(); - if (testProcess->exitCode() == 0) { - w.setGitExecutable(testProcess->readAllStandardOutput()); - } - testProcess->start("which gpg2"); - testProcess->waitForFinished(); - if (testProcess->exitCode() != 0) { - testProcess->start("which gpg"); - testProcess->waitForFinished(); - } - if (testProcess->exitCode() == 0) { - w.setGpgExecutable(testProcess->readAllStandardOutput()); - } - } - w.checkConfig(); w.show(); |